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-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
| Enable-RemoteDesktop | |
| cinstm fiddler4 | |
| cinstm git-credential-winstore | |
| cinstm console-devel | |
| cinstm sublimetext2 | |
| cinstm poshgit | |
| cinstm dotpeek |
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-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
| Enable-RemoteDesktop | |
| cinstm fiddler4 | |
| cinstm git-credential-winstore | |
| cinstm console-devel | |
| cinstm sublimetext2 | |
| cinstm poshgit | |
| cinstm dotpeek |
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
| choco install logparser |
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
| cinst dotpeek | |
| cinst sublimetext2 | |
| Install-ChocolateyFileAssociation ".txt" "$env:programfiles\Sublime Text 2\sublime_text.exe" | |
| Install-ChocolateyFileAssociation ".dll" "$($Boxstarter.programFiles86)\jetbrains\dotpeek\v1.1\Bin\dotpeek32.exe" |
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
| $cred=Get-Credential Administrator | |
| psexec \\blah.compute-1.amazonaws.com | |
| -u Administrator -p "yadayada" -h -d powershell.exe "Set-NetFirewallRule -Name WINRM-HTTP-In-TCP-PUBLIC -RemoteAddress Any" | |
| Import-Module Boxstarter.Chocolatey | |
| Install-BoxstarterPackage -Computername blah.compute-1.amazonaws.com -Credential $cred -PackageName bukkit -Force |
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
| cinst bukkit | |
| Install-WindowsUpdate -AcceptEula | |
| new-NetFirewallRule -Enabled True -LocalPort 25565 -RemoteAddress any -displayName minecraft -Protocol tcp | |
| bukkit |
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
| function Wait-ForTask($waitProc, $idleTimeout, $totalTimeout){ | |
| $reader=New-Object -TypeName System.IO.FileStream -ArgumentList @( | |
| "$env:temp\BoxstarterOutput.Stream", | |
| [system.io.filemode]::Open,[System.io.FileAccess]::ReadWrite, | |
| [System.IO.FileShare]::ReadWrite) | |
| try{ | |
| $procStartTime = $waitProc.StartTime | |
| while($waitProc -ne $null -and !($waitProc.HasExited)) { | |
| $timeTaken = [DateTime]::Now.Subtract($procStartTime) | |
| if($totalTimeout -gt 0 -and $timeTaken.TotalSeconds -gt $totalTimeout){ |
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
| Install-WindowsUpdate -AcceptEula |
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
| $serviceManager = New-Object -ComObject Microsoft.Update.ServiceManager -Strict | |
| $serviceManager.ClientApplicationID = "Boxstarter" | |
| $serviceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"") |
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
| if(Get-IsRemote){ | |
| Invoke-FromTask @" | |
| `$serviceManager = New-Object -ComObject Microsoft.Update.ServiceManager -Strict | |
| `$serviceManager.ClientApplicationID = "Boxstarter" | |
| `$serviceManager.RemoveService("7971f918-a847-4430-9279-4a52d1efe18d") | |
| "@ | |
| } | |
| else{ | |
| $serviceManager = New-Object -ComObject Microsoft.Update.ServiceManager -Strict | |
| $serviceManager.ClientApplicationID = "Boxstarter" |