Skip to content

Instantly share code, notes, and snippets.

@jshelbyjr
Last active September 9, 2021 03:47
Show Gist options
  • Save jshelbyjr/f148a7b9389c7967422b4e6c04de177e to your computer and use it in GitHub Desktop.
Save jshelbyjr/f148a7b9389c7967422b4e6c04de177e to your computer and use it in GitHub Desktop.
BoxStarter-Reset
# Install Chocolatey
# Install Boxstarter with . { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; Get-Boxstarter -Force
# Install-BoxstarterPackage -PackageName '<Raw gist url>' -DisableReboots Credential $cred
# Allow unattended reboots
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$false
#Setup Env
Update-ExecutionPolicy Unrestricted
Disable-UAC
Disable-BingSearch
Disable-GameBarTips
# Windows Features and Options
Set-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensions
cinst Microsoft-Hyper-V-All -source windowsFeatures #HV server and management tools
cinst Microsoft-Windows-Subsystem-Linux -source windowsFeatures
cinst TelnetClient -source windowsFeatures
cinst Windows-Defender-ApplicationGuard -source windowsFeatures
cinst Printing-PrintToPDFServices-Features -source windowsFeatures
cinst Containers-DisposableClientVM -source windowsFeatures #windows sandbox
cinst HypervisorPlatform -source windowsFeatures #windows sandbox
cinst VirtualMachinePlatform -source windowsFeatures #windows sandbox
# Enable Defender Features
Set-MpPreference -EnableControlledFolderAccess Enabled
Set-MpPreference -EnableNetworkProtection Enabled
#updates and restart if requried
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
#App Installs installs
cinst -y 7zip.install
cinst -y git.install
cinst -y poshgit
cinst -y notepadplusplus.install
cinst -y visualstudiocode --params '"/NoDesktopIcon /NoQuicklaunchIcon"'
cinst -y sysinternals
cinst -y googlechrome
cinst -y postman
cinst -y obs-studio
cinst -y mousewithoutborders
cinst -y patch-my-pc
cinst -y gimp
cinst -y toggl
# cinst -y choco install lightshot.install --cacheLocation ";$env:userprofile\AppData\Local\Temp\chocolatey"; ## install this or PicPick below
# Install applications not available in Chocolatey
Start-BitsTransfer -Source "https://typora.io/windows/typora-setup-x64.exe" -Destination "$Env:TEMP\typora-setup-x64.exe"; cmd /c '%TEMP%\typora-setup-x64.exe /SILENT'
Start-BitsTransfer -Source "https://s3.eu-west-1.amazonaws.com/assets.displaylink.com/live/downloads/software/f1649_DisplayLink%20USB%20Graphics%20Software%20for%20Windows%2010.0%20M0.exe?AWSAccessKeyId=AKIAJHGQWPVXWHEDJUEA&Expires=1615061486&Signature=40zzj4baZsYeVKdFSrQTakUWVQY%3D" -Destination "$Env:TEMP\DisplayLinkDriver.exe"; cmd /c '%TEMP%\typora-setup-x64.exe -SILENT'
Start-BitsTransfer -source "https://picpick.app/en/download/free/" -Destination "$Env:TEMP\PicPick.exe"; cmd /c '%TEMP%\PickPick.exe /S'
Start-BitsTransfer -source "https://downloads.ndi.tv/Tools/NDI%204%20Tools.exe" "$Env:TEMP\NDI%204%20Tools.exe"; cmd /c '%TEMP%\NDI%204%20Tools.exe /SILENT'
#### Future consideration use BITS direct for all packages and PatchMyPC for managing updates over public Choco repository ##
# Visual Studio Code Extensions
code --install-extension ms-vscode.powershell
code --install-extension tobysmith568.run-in-powershell
code --install-extension ms-vscode.azure-account
code --install-extension azps-tools.azps-tools
code --install-extension msazurermtools.azurerm-vscode-tools
code --install-extension bungcip.better-toml
code --install-extension hashicorp.terraform
code --install-extension yzhang.markdown-all-in-one
code --install-extension ms-vscode-remote.remote-wsl
code --install-extension ms-edgedevtools.vscode-edge-devtools
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension dotjoshjohnson.xml
# Install PowerShell Modules
Install-Module –Name MSOnline
Install-Module -Name AzureADPreview
Install-Module -Name ExchangeOnlineManagement
Install-Module -Name MicrosoftTeams
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Install-Module -Name SharePointPnPPowerShellOnline
#Close
Update-ExecutionPolicy RemoteSigned
Enable-UAC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment