Last active
August 29, 2015 14:20
-
-
Save xioustic/d458c703774fe4ef5926 to your computer and use it in GitHub Desktop.
Boxstarter: Install Boxstarter, Chocolatey, and Windows Updates Rebooting as Necessary
This file contains 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
START iexplore http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/Xioustic/d458c703774fe4ef5926/raw/b6a01dc4a62ed698df2a384213de0430a2c8eccd/boxstarter-updates.txt |
This file contains 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
# Elevate PowerShell and set common explorer options | |
Update-ExecutionPolicy Unrestricted | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
# Allow unattended reboots for updating | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.AutoLogin=$true | |
# Update Windows and reboot if necessary | |
Install-WindowsUpdate -AcceptEula | |
if (Test-PendingReboot) { Invoke-Reboot } | |
# Update any Packages | |
cup all | |
if (Test-PendingReboot) { Invoke-Reboot } | |
# Update Windows and reboot if necessary | |
Install-WindowsUpdate -AcceptEula | |
if (Test-PendingReboot) { Invoke-Reboot } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment