This file contains 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
# 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 |