Last active
September 24, 2015 06:47
-
-
Save grenade/bfa171be0604fc55cbc6 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
| $EC2SettingsFile='C:\Program Files\Amazon\Ec2ConfigService\Settings\Config.xml' | |
| $xml = [xml](get-content $EC2SettingsFile) | |
| $xmlElement = $xml.get_DocumentElement() | |
| $xmlElementToModify = $xmlElement.Plugins | |
| foreach ($element in $xmlElementToModify.Plugin){ | |
| if ($element.name -eq 'Ec2SetPassword') {$element.State='Enabled'} | |
| elseif ($element.name -eq 'Ec2HandleUserData') {$element.State='Enabled'} | |
| elseif ($element.name -eq 'Ec2DynamicBootVolumeSize') {$element.State='Enabled'} | |
| } | |
| $xml.Save($EC2SettingsFile) | |
| New-Item -Path HKLM:\Software\Amazon -Name WarmBoot | |
| stop-computer |
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
| Set-ExecutionPolicy RemoteSigned -f | |
| Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
| choco install -y --force sublimetext3 -version 3.0.0.3083 | |
| choco install -y --force sublimetext3.packagecontrol -version 2.0.0.20140915 | |
| choco install -y --force sublimetext3.powershellalias -version 0.1.0 | |
| choco install -y --force hg -version 3.5.1 | |
| choco install -y --force python2 -version 2.7.10 | |
| choco install -y --force git -version 2.5.3 | |
| choco install -y --force visualstudiocommunity2013 -version 12.0.21005.1 | |
| # choco install -y --force visualstudio2015community -version 14.0.23107.0 -packageParameters "--Features VCMFCLibraries" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe