Created
November 6, 2014 01:31
-
-
Save huskercane/e154c7f3b31ada4e5e0b to your computer and use it in GitHub Desktop.
Enable winrm from a provision script like in softlayer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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