Show More
@@ -191,6 +191,10 b" winrm set winrm/config/client/auth '@{Ba" | |||
|
191 | 191 | $Setting = 'LocalAccountTokenFilterPolicy' |
|
192 | 192 | Set-ItemProperty -Path $Key -Name $Setting -Value 1 -Force |
|
193 | 193 | |
|
194 | # Avoid long usernames in the temp directory path because the '~' causes extra quoting in ssh output | |
|
195 | [System.Environment]::SetEnvironmentVariable('TMP', 'C:\Temp', [System.EnvironmentVariableTarget]::User) | |
|
196 | [System.Environment]::SetEnvironmentVariable('TEMP', 'C:\Temp', [System.EnvironmentVariableTarget]::User) | |
|
197 | ||
|
194 | 198 | # Configure and restart the WinRM Service; Enable the required firewall exception |
|
195 | 199 | Stop-Service -Name WinRM |
|
196 | 200 | Set-Service -Name WinRM -StartupType Automatic |
General Comments 0
You need to be logged in to leave comments.
Login now