Skip to content

Instantly share code, notes, and snippets.

Install-WindowsUpdate -AcceptEula
cinst Microsoft-Hyper-V -source windowsfeatures
cinst Microsoft-Hyper-V-Management-PowerShell -source windowsfeatures
cinst VisualStudio2013Premium -InstallArguments "WebTools Win8SDK" -source "$env:temp\boxstarter\buildpackages"
@mwrock
mwrock / Boxstarter
Last active April 14, 2019 21:24
This gist demonstrates boxstarter building a new windows 8.1 box.
Enable-RemoteDesktop
Set-WindowsExplorerOptions -enableshowHiddenFilesFoldersDrives -enableshowProtectedOSFiles -enableshowFileExtensions
cinst VisualStudio2013Ultimate -InstallArguments WebTools
cinst fiddler4
cinst mssqlserver2012express
cinst console-devel
cinst sublimetext2
cinst poshgit
cinst googlechrome
cinst windirstat
@mwrock
mwrock / Create-BoxstarterAzureVM.ps1
Last active January 2, 2016 11:29
Assuming you have latest Boxstarter bits, The latest Azure Powershell SDK installed and with your subscription and storage accounts configured.
<#
To Configure your subscription with the Azure PowerShell SDK:
Get-AzurePublishSettingsFile
Import-AzurePublishSettingsFile <settings file downloaded>
Set-AzureSubscription -CurrentStorageAccountName <your storage account> -SubscriptionName <your subscription name>
#>
[CmdletBinding()]
param(
[parameter(Mandatory=$true, Position=0)]
[string]$vmname,
@mwrock
mwrock / gist:8441301
Created January 15, 2014 18:11
Create a new TFS Project using the TFS Power Tools
tfpt createteamproject /collection:http://localhost:8080/tfs/DefaultCollection /teamproject:MyProject /processtemplate:"Microsoft Visual Studio Scrum 2013" /noportal
@mwrock
mwrock / gist:8476811
Created January 17, 2014 16:49
A stab at a Powershell Plugin Pattern. In working out how different VM providers can plugin to Boxstarter, I have come up with a pattern for dynamicaly resolving a plugin function. I want to expose a Enable-BoxstarterVM and based on its -Provider argument call the same named functioned available in any same named function loaded. This pattern cr…
function Resolve-VMPlugin {
[CmdletBinding()]
[OutputType([BoxstarterConnectionConfig])]
param(
$Provider
)
DynamicParam {
if(!$provider){$provider="HyperV"}
$module=Get-Module "Boxstarter.$provider"
@mwrock
mwrock / gist:8515569
Created January 20, 2014 05:52
Azure Prereqs and PS 3 for win7
CINST powershell
if(Test-PendingReboot){Invoke-Reboot}
cinst windowsazurepowershell
cinst windowsazurelibsfornet
@mwrock
mwrock / gist:8518683
Last active January 3, 2016 20:59
Minecraft
CINST Bukkit
Install-WindowsUpdate -AcceptEula
New-NetFirewallRule -DisplayName "Minecraft" -Direction Inbound -LocalPort 25565 -Protocol TCP -Action Allow
Invoke-WmiMethod Win32_Process Create -Args "$env:systemdrive\tools\bukkit\Bukkit.bat"
@mwrock
mwrock / gist:8576155
Last active January 4, 2016 05:38
TFS Install
cinst VisualStudioTeamFoundationServerExpress2013
cinst MsSqlServer2012Express
$tfsConfig="$env:ProgramFiles\Microsoft Team Foundation Server 12.0\Tools\TfsConfig.exe"
.$tfsConfig unattend /configure /type:standard
.$tfsConfig unattend /configure /type:build `
/inputs:collectionurl=http://localhost:8080/tfs`;ServiceAccountName="LOCAL SERVICE"`;ServiceAccountPassword="pass"
@mwrock
mwrock / gist:8622431
Created January 25, 2014 19:50
Installs and configures TFS with build and reporting
#install SqlServer and TFS
cinst VisualStudioTeamFoundationServerExpress2013
cinst MsSqlServer2012ExpressWithReporting
#Configure SQL Reporting Services
$rsConfig = (Get-WmiObject `
-namespace "root\Microsoft\SqlServer\ReportServer\RS_MSSQLSERVER\v11\admin" `
-class "MSReportServer_ConfigurationSetting")
#Configuring Reporting Server Virtual Directories