Skip to content

Instantly share code, notes, and snippets.

@lukeplausin
Last active June 4, 2019 21:00
Show Gist options
  • Save lukeplausin/4c4e8a63a2ac36d9b7bd4ae87d3ef227 to your computer and use it in GitHub Desktop.
Save lukeplausin/4c4e8a63a2ac36d9b7bd4ae87d3ef227 to your computer and use it in GitHub Desktop.
Script to get you up and running a bit quicker after reinstalling windows
# You will need to run this in the shell first...
Set-ExecutionPolicy Unrestricted
# Install chocolatey
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
# Install my selection of useful software
choco install googlechrome flashplayerplugin javaruntime adobereader 7zip.install atom procexp sysinternals curl mRemoteNG gimp vim python2 python windirstat libreoffice partitionwizard skype macrium
# Finish off the installation of Macrium
(Invoke-Command "C:\tools\ReflectDL.exe") -and (rm "C:\tools\ReflectDL.exe")
# Add a local user
new-localuser -Name "Maria" -AccountNeverExpires -FullName "Maria" -PasswordNeverExpires
# Rename the computer
rename-computer -NewName "maria-pc" -Confirm -LocalCredential $(Get-Credential)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment