"Original" opens PowerShell remote management

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.