Skip to content

Instantly share code, notes, and snippets.

@HarmJ0y
Last active August 31, 2022 17:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save HarmJ0y/4c37e43ba4865bdef2a8 to your computer and use it in GitHub Desktop.
Save HarmJ0y/4c37e43ba4865bdef2a8 to your computer and use it in GitHub Desktop.
Enable PSRemoting
#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