PowerShell domain or trusting domain can also be remote _powershell

Source: Internet
Author: User

The default is to open PS remotely via enable-psremoting, and Kerberos authentication is initiated. This method is only suitable for two computers in the same domain or in the trusting domain of the designated computer (name can be suffix). However, it does not support cross-domain, extraterritorial, or IP addresses.

To make it work, you need to change the remote way of your computer. Please execute the following command with administrator privileges:

Copy Code code as follows:

Ps> Set-item Wsman:\localhost\client\trustedhosts-value *-force

If this path is illegal, you may need to first turn on the PS remote (using "Enable-psremoting–skipnetworkprofilecheck–force") on your computer.

Once you have changed, you can use NTLM authentication. But keep in mind that these domain-specific computers, you will use the "–credential" parameter to specify the relevant user and password.

Support Powershell3.0 and future versions

Setting up Windows PowerShell remote processing

You can use Windows PowerShell remote control to run a Windows PowerShell cmdlet to manage WCF and WF services located on a remote computer, or to manage system services, monitoring data, or staging databases located on a remote AppFabric server. To do this, open the Windows PowerShell Console, point to the remote computer, create a remote Windows PowerShell session, and then execute the cmdlet on the remote server.
To use Windows PowerShell remote control, you must do the following:
Install Windows PowerShell 2.0 on the client and remote server computers.

Enable the Windows PowerShell Remote control feature on the remote server computer.

Use Windows PowerShell listeners to configure the WinRM NT service (Microsoft implementation of the Wsman protocol) so that this service can listen for Windows PowerShell from remote Windows PowerShell clients Please.

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.