Sha256: b2bc92c693d0c3a255a2e1956fdabd193467acbaa19a57b9681d2455ba17d1e7
Contents?: true
Size: 995 Bytes
Versions: 7
Compression:
Stored size: 995 Bytes
Contents
#ps1_sysnative Write-Output "Setting <%= state[:username] %> password" net user <%= state[:username] %> '<%= state[:password] %>' Write-Output "Configuring WinRM" Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP" -RemoteAddress Any winrm set winrm/config/service '@{AllowUnencrypted="true"}' winrm quickconfig -quiet Enable-PSRemoting -Force winrm set winrm/config/client/auth '@{Basic="true"}' winrm set winrm/config/service/auth '@{Basic="true"}' winrm set winrm/config/service '@{AllowUnencrypted="true"}' winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}' winrm set winrm/config '@{MaxTimeoutms="1800000"}' netsh advfirewall firewall add rule name="WinRM HTTP" protocol=TCP dir=in profile=any localport=5985 remoteip=any localip=any action=allow netsh advfirewall firewall add rule name="WinRM HTTPS" protocol=TCP dir=in profile=any localport=5986 remoteip=any localip=any action=allow net stop winrm sc.exe config winrm start=auto net start winrm Write-Output "Configured WinRM"
Version data entries
7 entries across 7 versions & 1 rubygems