Skip to content

Instantly share code, notes, and snippets.

@kmcginnes
Last active August 29, 2015 13:57
Show Gist options
  • Save kmcginnes/9775481 to your computer and use it in GitHub Desktop.
Save kmcginnes/9775481 to your computer and use it in GitHub Desktop.
BoxStarter: Windows 7 WPF DevBox
Disable-UAC
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart
Set-TaskbarOptions -Dock Left
Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan"
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring()
$regex = [regex]"{(.*?)}$"
$newpowerVal = $regex.Match($guid).groups[1].value
powercfg -S $newpowerVal
Write-BoxstarterMessage "Setting Standby Timeout to Never"
powercfg -change -standby-timeout-ac 0
powercfg -change -standby-timeout-dc 0
Write-BoxstarterMessage "Setting Monitor Timeout to Never"
powercfg -change -monitor-timeout-ac 0
powercfg -change -monitor-timeout-dc 0
Write-BoxstarterMessage "Setting Disk Timeout to Never"
powercfg -change -disk-timeout-ac 0
powercfg -change -disk-timeout-dc 0
Write-BoxstarterMessage "Turning off Windows Hibernation"
powercfg -h off
Write-BoxstarterMessage "Setting time zone to Central Standard Time"
& C:\Windows\system32\tzutil /s "Central Standard Time"
cinst VisualStudio2013Premium
cinst ReSharper
cinst msbuild.communitytasks
cinst vlc
cinst 7zip
cinst imdisk
cinst autoit #required by freefilesync
cinst freefilesync
cinst SublimeText3
cinst SublimeText3.PackageControl
cinst googlechrome
cinst SourceCodePro
cinst wizmouse
cinst mactype
cinst githubforwindows
& C:\Windows\Microsoft.Net\Framework64\v2.0.50727\CasPol.exe -pp off -m -ag 1.2 -url file:///Z:/Projects/* FullTrust
& C:\Windows\Microsoft.Net\Framework64\v4.0.30319\CasPol.exe -pp off -m -ag 1.2 -url file:///Z:/Projects/* FullTrust
& C:\Windows\Microsoft.Net\Framework\v2.0.50727\CasPol.exe -pp off -m -ag 1.2 -url file:///Z:/Projects/* FullTrust
& C:\Windows\Microsoft.Net\Framework\v4.0.30319\CasPol.exe -pp off -m -ag 1.2 -url file:///Z:/Projects/* FullTrust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment