Skip to content

Instantly share code, notes, and snippets.

@y0ug
Last active August 29, 2015 14:07
Show Gist options
  • Save y0ug/9182ab9a1c41082dc070 to your computer and use it in GitHub Desktop.
Save y0ug/9182ab9a1c41082dc070 to your computer and use it in GitHub Desktop.
REM install WinRM and powershell
START "" /WAIT WindowsXP-KB968930-x86-ENG.exe /quiet /passive /norestart
REM disable all the shitz
set LIST=(helpsvc ERSvc FastUserSwitchingCompatibility RDSessMgr WZCSVC Dot3scv VSS Themes LmHosts srservice SSDPSRV SCardSvr wscsvc Spooler wuauserv CiSvc SwPrv)
for %%i in %LIST% do CALL sc config %%i start= disabled
REM enable DCOM auth without domain
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v forceguest /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
REM enable the service DCOM
CALL sc config RpcSs start= auto
CALL sc start RpcSs
REM disable firewall incase
CALL netsh firewall set opmode disable
REM enable RDP
CALL reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
REM settings up winrm
CALL winrm quickconfig -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment