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, 1863🔥, 0💬
Popular Posts:
I am unable to copy data from my external hard-disk (NTFS). When I try to repair it from cmd using c...
What files are stored in the "C:\Users\<userid >\AppData\Local\M icrosoft\Windows\Tempor. ..
Where to find tutorials on Internet Explorer (IE)? Here is a large collection of tutorials to answer...
What is wrong if you get an execution error: "The procedure entry point _zval_dtor could not be loca...
What is AcroIEHelper.dll - DLL file - Adobe Acrobat IE Helper Version 6.0 for ActiveX? DLL AcroIEHel...