"New-PSSession" Cmdlet in Windows PowerShell
How to use "New-PSSession" cmdlet in Windows PowerShell?
You can use the "New-PSSession" cmdlet to create a PSSession on a remote computer.
The New-PSSession cmdlet creates a Windows PowerShell session (PSSession) on one or more remote computers.
Once a PSSession is created on a remote computer, it will live on the remote computer independently from your local computer. And you are allowed to do the following:
Here are example commands to create PSSessions on remote computers:
PS C:\fyicenter> # Create a PSSession on "office-server" computer PS C:\fyicenter> new-pssession office-server PS C:\fyicenter> # Create an another PSSession on "office-server" computer PS C:\fyicenter> # And save the PSSession object in variable $s PS C:\fyicenter> $s = new-pssession office-server PS C:\fyicenter> # Create multiple PSSessions on multiple computers PS C:\fyicenter> new-pssession office-server,hr-server,it-server
â‡‘â‡‘ Windows PowerShell Tutorials
2016-10-17, 4263👍, 0💬
How to start sc.exe command to create, delete and manage Windows services? sc.exe is a command line ...
Where to find tutorials on managing Windows 7 scheduled tasks? Here is a collection of tutorials on ...
Can I remove startup application "DLG.exe - Modem Digital Line Detection" to speedup my computer and...
This is what I do Charms bar >Settings> Change my PC settings > User > "Trust this PC" When I get my...
What is AccelerometerSt.exe process - Hp Accelerometer System Tray? Process AccelerometerSt.exe is t...