Skip to content

Instantly share code, notes, and snippets.

@flatlinebb
Last active September 27, 2016 16:07
Show Gist options
  • Save flatlinebb/309ee785c90f12514aceb4689d806529 to your computer and use it in GitHub Desktop.
Save flatlinebb/309ee785c90f12514aceb4689d806529 to your computer and use it in GitHub Desktop.
Update Maintenance Gist File
##Update Maintenance Gist File
# To run, use this URL:
# http://boxstarter.org/package/url?C:\Support\boxstarter_maint_gist1.txt
###### Boxstarter options
# Allow reboots
$Boxstarter.RebootOk=$true
# Is this a machine with no login password?
# $boxstarter.NoPassword=$True
# Save my password securely and auto-login after a reboot
# No password on this machine, so commented out
$Boxstarter.AutoLogin=$true
# Update all installed Choco packages
# cup all -y --ignore-checksum
# Check for pending reboot and reboot if necessary
if (Test-PendingReboot) { Invoke-Reboot }
# Get Windows Updates, Install and Reboot if needed
Install-WindowsUpdate -getUpdatesFromMS -acceptEula
# Rinse and repeat
if (Test-PendingReboot) { Invoke-Reboot }
@dragon788
Copy link

You could also just append your Gist raw URL instead of a local file path assuming you have external internet access on the machine where you want to run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment