Recently, looking at PowerShell-related knowledge because of the need for work, the individual summarizes a little bit about the steps needed to make a remote connection to PowerShell and wants to help others.
Remote connection using PowerShell requires a
Configuration of the device:
1. Turn on PS Remote management: Enable-psremoting-force
(If prompted: Press the Y key to enter)
2. Turn on WRM request: WinRM quickconfig
Client Configuration:
Add Host Trust: Set-item Wsman:\localhost\client\trustedhosts-value *
If you are prompted to change the network connection type to domain or private, and then try again ,
Remember to make sure to change the device network type to private network or work network.
Set-executionpolicy remotesigned
(prompt: Press Y to enter)
The above steps can be used to make PowerShell remote connection, but in the win8 below the default is not to configure PowerShell in the environment, we need to manually configure.
First, you can run PowerShell under the CMD terminal
CMD "PowerShell
If the ' not internal processing command ' appears, you need to configure the environment variable below path .
1. On the last side of path, add
;%systemroot%\system32\windowspowershell\v1.0\
Restart the cmd terminal,
CMD "PowerShell
Or do you want to add the PowerShell feature to your computer manually by prompting ' not an internal processing command '?
Under the Start menu, enter
Compmgmtlauncher Enter
Go to " Server Manager " and click on the " functions " button in the tree map on the left.
Click Add Feature
"Net Framework 3.0 features "--------tick
"Windows PowerShell"-----------tick
When you're done, restart the terminal and enter PowerShell to enter the PowerShell interface.
By this time you will be able to enter the link script in the PowerShell administrator run.
Link script I do not write in detail here, in Google can search, a lot, and then I this is the first time with this thing, will not add pictures, we look at a bit of trouble, sorry.
PowerShell Remote Connection