Remote powershell connection and powershell connection

Source: Internet
Author: User
Tags to domain

Remote powershell connection and powershell connection

Recently, I have looked at powershell-related knowledge for my work. I have summarized some of the steps required for remote powershell connection and hope to help others.

Remote connection using powershell requires

Device Configuration:

1. enable remote ps management: enable-psremoting-force

(If prompted, Press y to press Enter)

2. Request to enable wrm: winrm quickconfig

Client Configuration:

Add host trust: Set-Item wsman: \ localhost \ Client \ TrustedHosts-value *

If the message 'change the network connection type to domain or private, and then try again 'appears,

Remember to change the network type of the device to private network or work network.

Set-ExecutionPolicy RemoteSigned

(Prompt: Press y to press Enter)

After running the above steps, you can connect to powershell remotely. However, in versions earlier than win8, powershell is not configured in the environment by default. We need to manually configure it.

Run powershell on the cmd terminal.

Cmd powershell

If 'not an internal processing command' appears, you need to configure the environment variable under path.

1. Add at the end of path

; % SYSTEMROOT % \ System32 \ WindowsPowerShell \ v1.0 \

Restart the cmd terminal,

Cmd powershell

The system still prompts "not an internal processing command". You need to manually add the powershell function to the computer,

Enter

CompMgmtLauncherEnter

Go to"Server Manager", Click"Function"Button,

ClickAdd feature

"Net Framework 3.0 features"-------- Check

"Windows PowerShell"----------- Check

After that, restart the terminal and enter powershell to enter the powershell interface.

At this time, you can enter the link script in the powershell Administrator running.

 

I will not write the link script in detail here. I can find many links on google. This is the first time I used this item and won't add images. It will be a little troublesome for everyone to look at. Sorry.

 

Related Article

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.