Skip to content

Instantly share code, notes, and snippets.

@pgensler
Last active August 6, 2022 18:30
Show Gist options
  • Save pgensler/56e32bf3c7692f9acf7e8f5cf9261ac8 to your computer and use it in GitHub Desktop.
Save pgensler/56e32bf3c7692f9acf7e8f5cf9261ac8 to your computer and use it in GitHub Desktop.
# Reference links: https://www.youtube.com/watch?v=WnNA356a9pk
# TechSnips script link
# https://gist.github.com/ctmcisco/a561b72f1416aa5eaef2631104dad1cb
# Nick Craver's script
# https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
# 1. Run Windows Powershell ISE as admin and run the following commands first to install Boxstart w/Chocolately
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); Get-Boxstarter -Force
# 2. Run this command to run the following gist for installation:
Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/pgensler/56e32bf3c7692f9acf7e8f5cf9261ac8/raw/ce51c8bea4de82a47ad75e069a655cde7906e5ac/WorkInstallScript.txt -DisableReboots
#---- TEMPORARY ---
Disable-UAC
#--- Windows Desktop Experience Settings ---
Disable-GameBarTips
Set-WindowsExplorerOptions -EnableShowFileExtensions
# Privacy: Let apps use my advertising ID: Disable
If (-Not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo")) {
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo | Out-Null
}
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# Start Menu: Disable Bing Search Results
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 0
# To Restore (Enabled):
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 1
# Change Explorer home screen back to "This PC"
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 1
# Change it back to "Quick Access" (Windows 10 default)
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 2
# Better File Explorer
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
# These make "Quick Access" behave much closer to the old "Favorites"
# Disable Quick Access: Recent Files
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 0
# Disable Quick Access: Frequent Folders
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 0
# To Restore:
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 1
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 1
# Lock screen (not sleep) on lid close
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 1
# To Restore:
# Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 0
# Disable Xbox Gamebar
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name AppCaptureEnabled -Type DWord -Value 0
Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name GameDVR_Enabled -Type DWord -Value 0
# Turn off People in Taskbar
If (-Not (Test-Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People")) {
New-Item -Path HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People | Out-Null
}
Set-ItemProperty -Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name PeopleBand -Type DWord -Value 0
##
# Might need to add this as well to block unwanted domains too:
# https://github.com/Ultimate-Hosts-Blacklist/Ultimate.Hosts.Blacklist
## Programs that need to be installed manually after script completes:
# HotSpot Shield VPN:
# LogiTune
# DbSchema
# BitDefender
# Alteryx
# Pegasun System Utilities
##
# Need to install bit defender manually
choco install googlechrome -y
choco install firefox -y
choco install brave -y
#choco install google-drive-file-stream -y
choco install caffeine -y
choco install office365business -y
choco install wiztree -y
choco install agentransack -y
choco install vscode -y
choco install notepadplusplus.install -y
choco install 7zip -y
choco install winscp -y
choco install fiddler -y
choco install adobereader -y
#Logitech unifying software
choco install unifying -y
choco install logitech-options -y
choco install spotify -y
#choco install partitionmasterfree
choco install sysinternals -y
#Data Visualization
choco install powerbi -y
choco install tableau-desktop -y
#Analytics
choco install r.studio -y
choco install anaconda3 -y
#Teams we will need machine wide install
choco install zoom -y
choco install microsoft-teams.install -y
choco install slack -y
#choco install dashlane -y
choco install git -y
choco install gitkraken -y
#Microsoft BI tools
choco install sql-server-express -y
choco install sql-server-management-studio -y
choco install visualstudio2019community -y
choco install ssis-vs2019 -y
choco install daxstudio -y
choco install snagit -y
choco install sql-server-management-studio -y
#SQL IDE's
choco install datagrip -y
choco install sql-server-management-studio -y
choco install dbeaver -y
#Install belarc last as it will prompt to
choco install belarcadvisor -y
#Not sure if we will need but keep on here anyway:
choco install tad -y
choco install notion -y
choco install evernote -y
# 3D Builder
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage
# Alarms
Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage
# Bing Weather, News, Sports, and Finance (Money):
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
# Feedback Hub
Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage
# Get Started
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage
# Messaging
Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage
# Mail & Calendar
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage
# Maps
Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage
# People
Get-AppxPackage Microsoft.People | Remove-AppxPackage
# Phone
Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage
# Sound Recorder
Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage
# Xbox
Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage
#--- Restore Temporary Settings ---
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment