Documentation forHybrid Cloud Observability Essentialsand Server & Application Monitor

Configure systems for PowerShell remote operations

See also Use PowerShell in SAM.

This topic describes how to configure a client systems so that it can access other systems remotely using PowerShell remoting and is no longer limited to Kerberos and machines inside a domain.

To set up TrustedHosts without calling Enable-PSRemoting, you need to add a registry key and then temporarily run the WinRM service.

To set up TrustsHosts for a system:

  1. Run a Windows PowerShell console as an administrator (right-click):

  2. Execute the following commands:

    PS> Set-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\SystemLocalAccountTokenFilterPolicy 1 -Type DWord

    PS> Start-Service WinRM

  3. Add the TrustedHosts entry:

    PS> Set-Item WSMan:\localhost\Client\TrustedHosts -Value * -Force

  4. Turn off the WinRM service and revert the value of the LocalAccountTokenFilterPolicy registry entry:

    PS> Stop-Service WinRM PS> Set-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

    LocalAccountTokenFilterPolicy 0 -Type DWord