Skip to content

Instantly share code, notes, and snippets.

@grenade
Last active September 24, 2015 06:47
Show Gist options
  • Select an option

  • Save grenade/bfa171be0604fc55cbc6 to your computer and use it in GitHub Desktop.

Select an option

Save grenade/bfa171be0604fc55cbc6 to your computer and use it in GitHub Desktop.
$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
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"
@grenade
Copy link
Author

grenade commented Sep 23, 2015

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment