Collections:
Other Resources:
"Enter-PSSession" Cmdlet in Windows PowerShell
What is the "Enter-PSSession" cmdlet in Windows PowerShell?
✍: FYIcenter.com
You can use the "Enter-PSSession" cmdlet to create a new PSSession
on a remote computer, and continue to use that PSSession to run cmdlets
on the remote computer.
Here is an example of using the "Enter-PSSession" cmdlet to run two cmdlets on the remote computer: office-server
PS C:\fyicenter> Enter-PSSession office-server [office-server]: PS C:\fyicenter> get-host Name : ServerRemoteHost Version : 1.0.0.0 InstanceId : fc76cce4-28bc-4e13-8a54-8cbf51fe2a9f UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-US CurrentUICulture : en-US PrivateData : IsRunspacePushed : Runspace : [office-server]: PS C:\fyicenter> query user USERNAME SESSIONNAME ID STATE IDLE TIME fyicenter rdp-tcp#0 2 Active . [office-server]: PS C:\fyicenter> Exit
Note that the "Exit"
⇒ "Get-PSSession" Cmdlet in Windows PowerShell
⇐ Enable WinRM for Remote Computer with Windows PowerShell
2016-10-15, ≈10🔥, 0💬
Popular Posts:
Where are services hosted by "svchost.exe -k DcomLaunch" on Windows 7? What is the meaning of "-k Dc...
product key for adding features to windows 8 The product key you require is MBFBV-W3DP2-2MVKN-PJCQD- ...
What is the scheduled task "\G2MUpdateTask-S-1-5-21 -..."on my Windows 7 computer? "\G2MUpdateTask-S...
Can I remove startup application "ifrmewrk.exe - Intel Wireless Framework" to speedup my computer an...
Where to find tutorials on using Windows 7 Installed Programs and software? Here is a collection of ...