Skip to content

Instantly share code, notes, and snippets.

@ramarnat
Last active November 30, 2015 20:25
Show Gist options
  • Select an option

  • Save ramarnat/2f249ec46d408b36d818 to your computer and use it in GitHub Desktop.

Select an option

Save ramarnat/2f249ec46d408b36d818 to your computer and use it in GitHub Desktop.
Set-StrictMode -Version Latest
Set-ExecutionPolicy Unrestricted
$log = 'c:\boxstarter-boostrap.txt'
Try
{
. C:\Users\Administrator\AppData\Roaming\Boxstarter\BoxstarterShell.ps1
Get-Module -ListAvailable | Add-Content $log
Disable-InternetExplorerESC
Add-Content $log -value "Disabled IE ESC"
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Add-Content $log -value "Set Windows Explore Options"
Set-TaskbarOptions -Size Small
Add-Content $log -value "Set Task Bar Options"
}
Catch
{
"ERROR executing boxcutter: $_" | Add-Content $log
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment