Skip to content

Instantly share code, notes, and snippets.

View bambus1980's full-sized avatar

Vitaly Bogryashov bambus1980

View GitHub Profile
@bambus1980
bambus1980 / create-WinXP-vm.ps1
Created January 11, 2023 03:14 — forked from glombard/create-WinXP-vm.ps1
Create Windows XP image on Hyper-V
# Enable RDP on host:
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name fDenyTSConnections -Type DWord -Value 0
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
# Get sublime text editor:
$c=new-object Net.WebClient
$c.DownloadFile('http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203047%20x64%20Setup.exe',"$env:TEMP\sublime.exe")
cd $env:TEMP
.\sublime.exe /SILENT