Skip to content

Instantly share code, notes, and snippets.

@huskercane
Created November 6, 2014 01:31
Show Gist options
  • Select an option

  • Save huskercane/e154c7f3b31ada4e5e0b to your computer and use it in GitHub Desktop.

Select an option

Save huskercane/e154c7f3b31ada4e5e0b to your computer and use it in GitHub Desktop.
Enable winrm from a provision script like in softlayer
# configure WinRM
Set-WSManQuickConfig -Force
Set-Item WSMAN:\LocalHost\MaxTimeoutms -Value "1800000"
Set-Item WSMAN:\LocalHost\Service\AllowUnencrypted -Value $true
Set-Item WSMAN:\LocalHost\Service\Auth\Basic -Value $true
Set-Item WSMAN:\LocalHost\Client\Auth\Basic -Value $true
Set-Item WSMan:\Localhost\Client\TrustedHosts -Value "*" -Force
Set-Service WinRM -startuptype "automatic"
Enable-PSRemoting -force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment