Collections:
Other Resources:
Example of PowerShell Session on Remote Computer
Where to get an example of running PowerShell session on a remote computer?
✍: FYIcenter.com
Here is a good example of running PowerShell session on a remote computer called office-server.
The example assumes that the local computer and the remote computer are in the same domain,
and you have a domain login name and password.
1. Login on the local computer with your domain login name and password.
2. Start a PowerShell window on the local computer and run the following cmdlets:
PS C:\fyicenter> New-PSSession office-server [office-server]: PS C:\Users\fyicenter\Documents> [office-server]: PS C:\Users\fyicenter\Documents> query user USERNAME SESSIONNAME ID STATE IDLE TIME fyicenter rdp-tcp#0 2 Active . [office-server]: PS C:\Users\fyicenter\Documents> get-host Name : ConsoleHost Version : 3.0 UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-US CurrentUICulture : en-US PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace [office-server]: PS C:\Users\fyicenter\Documents> exit PS C:\fyicenter>
⇒ "Invoke-Command" Cmdlet in Windows PowerShell
⇐ "Remove-PSSession" Cmdlet in Windows PowerShell
2016-10-13, ∼2741🔥, 0💬
Popular Posts:
What is "McAfee Security Scan Component Host Service" in my Windows 7 service list? And how is "McAf...
How to unblock a publisher? 1. Open Internet Explorer. 2. Click the Tools button, and then click Int...
What is "Ulead Burning Helper" in my Windows 7 service list? And how is "Ulead Burning Helper" servi...
Why am I getting errors when starting Apache server to load PHP as a module with php5apache2.dll? If...
What is "Microsoft .NET Framework NGEN v4.0.30319_X86" in my Windows 7 service list? And how is "Mic...