-
-
Save jymcheong/2832ee87d479c0138e36817982ff2120 to your computer and use it in GitHub Desktop.
Enable PSRemoting
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
#Run winrm quickconfig defaults | |
echo Y | winrm quickconfig | |
#Run enable psremoting command with defaults | |
Enable-PSRemoting -force | |
# adjust local token filter policy | |
Set-ItemProperty –Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System –Name LocalAccountTokenFilterPolicy –Value 1 -Type DWord | |
#Enabled Trusted Hosts for Universial Access | |
Set-Item WSMan:\localhost\Client\TrustedHosts –Value * -Force | |
restart-Service winrm | |
echo "Complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment