Created
February 27, 2019 12:12
-
-
Save fcicq/bfef37d83093595aa7a70491acac8974 to your computer and use it in GitHub Desktop.
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
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