Skip to content

Instantly share code, notes, and snippets.

@fcicq
Created February 27, 2019 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcicq/bfef37d83093595aa7a70491acac8974 to your computer and use it in GitHub Desktop.
Save fcicq/bfef37d83093595aa7a70491acac8974 to your computer and use it in GitHub Desktop.
cmd /c sc config audiosrv start=auto
net start audiosrv
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\" -Name fDenyTSConnections -Value 0
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\" -Name UserAuthentication -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
net user ... /add
net localgroup "Remote Desktop Users" xxxx /add
; note about "name='xxxx'"
WMIC USERACCOUNT WHERE "Name='xxxx'" SET PasswordExpires=FALSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment