Manage machines using PowerShell in untrusted domains

Learn how to manage untrusted machines with PowerShell.

John Savill

February 11, 2016

1 Min Read
Manage machines using PowerShell in untrusted domains

Q. How can I manage remote machines that are not part of a trusted domain using PowerShell?

A. Typically you will manage machines that are part of your domain or that are in a trusted domain which means Kerberos can be used for the authentication and assures mutual authentication (the target server really is who it says it is). When connecting to machines outside of the trusted boundary (including workgroup machines) there are two options:

  • Add the machines to the TrustedHosts list (which means they are trusted so much we don't care about mutual authentication)

  • Use SSL to the target (which will use the SSL certificate to confirm the identity of the target)

Care should be used when using TrustedHosts as to not enable for anything as this is saying to not perform mutual authentication on any systems and defeats the purpose which is to protect your machine from connecting to an impersonator machine. Also restrict TrustedHosts to the smallest possible set of machines. TrustedHosts also has to be maintained on all machines initiating PowerShell which contrasts with using SSL where the configuration is performed on the target system and can then be leveraged from any source system.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like