Non-domain network, open PowerShell remote management, the command is as follows:
The following operations, the PS Command window, must be performed in the admin province.
Step 1: Machine A and B, open PowerShell remote Management Service separately
A = 192.168.3.32
PS >> enable-psremoting
Then follow the prompts, select Y, and perform open remote management.
B = 192.168.3.37
PS >> enable-psremoting
Then follow the prompts, select Y, and perform open remote management.
Step 2: Machine A and B, trusting the IP or name of the machine to be remotely managed, respectively
a=192.168.3.32
PS >> Set-item Wsman:\localhost\client\trustedhosts-value 192.168.3.37
Then follow the prompts and select Y for the option to allow remote Send command
B = 192.168.3.37
PS >> Set-item Wsman:\localhost\client\trustedhosts-value 192.168.3.37
Then follow the prompts and select Y for the option to allow remote Send command
Step 3: On Machine A, Telnet and execute commands to machine B
A = 192.168.3.32
PS >> Enter-pssession-computername 192.168.3.37
As follows:
Machine A, remote execute command machine B Create folder D:\Test
View machine B with the folder you just created remotely D:\Test
Later, I'll show you how to use PowerShell + Jenkins to deploy C # remotely. NET four kinds of programs:
1. Client update package, file system
2. WCF Services
3. Task Scheduled Tasks
4. MVC website
"I am original ", Welcome to exchange and share technology, reproduced please attach the following content:
If you think this article is helpful to you, please remember to help me to praise, thank you!
Author: Kevin "Turn from" http://www.cnblogs.com/itshare/
"Original" opens PowerShell remote management