Skip to main content

WinRM on a computer that is not part of an AD domain

This guide is an aid to perform a basic configuration of WinRM, but you will need to adjust the configuration for your environment if you require any particular parameter.

  • You must ensure that the network you are connecting to is private, in a PowerShell® terminal window:
Get-NetConnectionProfile
Set-NetConnectionProfile -Name "MYWIFINETWORK" -NetworkCategory Private
  • Activation of the administrator user and assignment of a password:
net user administrator /active:yes
net user administrator *
  • WinRM configuration and allow connection from specific or all hosts:
winrm quickconfig
Set-Item WSMan:\localhost\Client\TrustedHosts -Value *
  • Restart the service:
Restart-Service WinRM

Â