Last active
January 6, 2024 13:53
-
-
Save mystix/4813520f34737d77e2f266cb8af40503 to your computer and use it in GitHub Desktop.
Setup new Windows 10 machine
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
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/mystix/4813520f34737d77e2f266cb8af40503/raw/20-setup-windows.ps1')) |
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
# Enable Microsoft Windows Defender | |
Set-MpPreference -DisableRealtimeMonitoring $false | |
# https://www.tomsguide.com/news/how-to-uninstall-cortana | |
Get-AppxPackage -allusers Microsoft.549981C3F5F10 | Remove-AppxPackage | |
# https://www.techsupportall.com/uninstall-built-apps-windows-10 | |
Get-AppxPackage -AllUsers *3dbuilder* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *3dviewer* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *appinstaller* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *bing* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *communicationsapps* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *feedback* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *gethelp* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *getstarted* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *mcafee* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *messaging* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *mixedreality* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *officehub* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *onenote* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *phone* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *skypeapp* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *solitaire* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *spotify* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *sway* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *zune* | Remove-AppxPackage | |
# remove Dell-specific apps | |
Get-AppxPackage -AllUsers *dellcustomerconnect* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *delldigitaldelivery* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *mydell* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *partnerpromo* | Remove-AppxPackage | |
Get-AppxProvisionedPackage -online | %{if ($_.packagename -match "MyDell") {$_ | Remove-AppxProvisionedPackage -AllUsers}} | |
Get-AppxProvisionedPackage -online | %{if ($_.packagename -match "PartnerPromo") {$_ | Remove-AppxProvisionedPackage -AllUsers}} | |
# remove mcafee crapware | |
Get-AppxPackage -AllUsers *mcafee* | Remove-AppxPackage | |
# NOTE: will throw errors | |
# (because some Xbox* and People* packages are system packages and cannot be uninstalled) | |
Get-AppxPackage -AllUsers *people* | Remove-AppxPackage | |
Get-AppxPackage -AllUsers *xbox* | Remove-AppxPackage | |
# install chocolatey | |
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
# install google drive file stream | |
choco install -y googledrive | |
# remove Google Docs / Sheets / Slides shortcuts from Desktop | |
Get-ChildItem "$env:userprofile\Desktop\Google*.lnk" | ForEach-Object { Remove-Item $_ } | |
# install teamviewer | |
choco install -y teamviewer | |
# uninstall pre-installed OneDrive | |
ps onedrive | Stop-Process -Force | |
start-process "$env:windir\SysWOW64\OneDriveSetup.exe" "/uninstall" | |
# install GWSMO | |
$gwsmo = "$env:userprofile\Downloads\gwsmo.msi" | |
(New-Object System.Net.WebClient).DownloadFile("https://dl.google.com/dl/google-apps-sync/x64/enterprise_gsync.msi", $gwsmo) | |
Start-Process -file $gwsmo -arg "/passive" -passthru | wait-process | |
Remove-Item $gwsmo # cleanup |
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
# download DocuCentre-V C2263 & DocuCentre-VI C2271 driver | |
$fuji = "https://support-fb.fujifilm.com/driver_downloads/fxdc5c2265pcl6180510wvt6ien.exe" | |
(New-Object System.Net.WebClient).DownloadFile($fuji, "$env:userprofile\Desktop\docucentre-v-c2263-bridge.exe") | |
$fuji = "https://support-fb.fujifilm.com/driver_downloads/fxap6c7771pcl6180910wvt6ien.exe" | |
(New-Object System.Net.WebClient).DownloadFile($fuji, "$env:userprofile\Desktop\docucentre-vi-c2271-fassler.exe") |
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
# install Office 365 | |
choco install -y office365business --params="'/exclude:Access Groove Lync OneDrive OneNote Publisher Teams'" | |
# # uninstall teams machine-wide installer | |
# $MachineWide = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "Teams Machine-Wide Installer"} | |
# $MachineWide.Uninstall() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment