Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################################################################################################
- #=====[ Software ]=====#
- ########################################################################################################################
- #=====[ Software Configuration ]=====#
- #Stops edge from taking over as the default .PDF viewer
- Write-Host('Stopping Edge from taking over as the default .PDF viewer') -Fore White
- # Identify the edge application class
- $Packages = "HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages"
- $edge = Get-ChildItem $Packages -Recurse -include "MicrosoftEdge"
- # Specify the paths to the file and URL associations
- $FileAssocKey = Join-Path $edge.PSPath Capabilities\FileAssociations
- $URLAssocKey = Join-Path $edge.PSPath Capabilities\URLAssociations
- # get the software classes for the file and URL types that Edge will associate
- $FileTypes = Get-Item $FileAssocKey
- $URLTypes = Get-Item $URLAssocKey
- $FileAssoc = Get-ItemProperty $FileAssocKey
- $URLAssoc = Get-ItemProperty $URLAssocKey
- $Associations = @()
- $Filetypes.Property | foreach {$Associations += $FileAssoc.$_}
- $URLTypes.Property | foreach {$Associations += $URLAssoc.$_}
- # add registry values in each software class to stop edge from associating as the default
- foreach ($Association in $Associations)
- {
- $Class = Join-Path HKCU:SOFTWARE\Classes $Association
- #if (Test-Path $class)
- # {write-host $Association}
- # Get-Item $Class
- Set-ItemProperty $Class -Name NoOpenWith -Value ""
- Set-ItemProperty $Class -Name NoStaticDefaultVerb -Value ""
- }
- Set-Content -Path 'C:\Automation\Choco.ps1' -Value {
- # Zoom Download and Install
- # choco install zoom -y
- # Brave Download
- choco install brave -y
- # Parsec
- choco install parsec -y
- # Google Chrome Download and Install
- choco install googlechrome -y
- # Notepad++ Download and Install
- choco install notepadplusplus -y
- # VLC Download and Install
- choco install vlc -y
- # 7Zip Download and Install
- choco install 7zip -y
- # Windows Terminal Download and Install
- choco install microsoft-windows-terminal -y
- # PowerToys Download and Install
- choco install powertoys -y
- # MegaSync Download and Install
- choco install megasync -y
- # Notion Download and Install
- choco install notion -y
- # GreenShot Download and Install
- choco install greenshot -y
- # FoxitReader Download and Install
- choco install foxitreader -y
- # Sublime Download and Install
- choco install sublimetext3 -y
- # JRE8 Download and Install
- choco install jre8 -y
- # HoneyView Download and Install
- # choco install honeyview -y
- # Parsec Download and Install
- choco install parsec -y
- # VSCodium Download and Install
- choco install vscodium -y
- # Pot Player Download and Install
- choco install potplayer -y
- # DupeGuru Download and Install
- choco install dupeguru -y
- # Set Brave and Chrome Extensions for use
- Set-Location -Path "C:\Users\Default\Links"
- $URLs = @(
- "https://www.mediafire.com/file/x3d7jl3i6sqqnmm/BitWarden_extension_1_56_4_0.crx/file"
- "https://www.mediafire.com/file/k2ydui0i7l4kyq6/NordTheme_2_4_4_0.crx/file"
- "https://www.mediafire.com/file/60msblhs8n4kdwz/Ublock_Orgin_extension_1_41_2_0.crx/file"
- )
- foreach ($URL in $URLs) {
- $DownloadLink2 = (Invoke-WebRequest -Uri $URL -UseBasicParsing).Links | sort-object href -Unique | Select-Object href | Select-String -Pattern 'https://download' -SimpleMatch
- $DownloadLink1 = $DownloadLink2 -replace "@{href=" -replace "" ; $Source = $DownloadLink1 -replace "}" -replace ""
- $DIR = $(get-location).Path ; $APP = ($Source.Split('/',6) | Select -Index 5) ; $DIRAPP = $DIR + "\" + $APP
- Write-Host("Downloading $APP...") -Fore Yellow
- Start-BitsTransfer -Source $Source -Destination $DIRAPP
- }
- # ======== Chrome Settings ======== #
- # Set Extensions root key
- New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions" -EA SilentlyContinue
- # Set Nord Theme extension root key
- New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\Nord" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\Nord" -Name "Path" -Type String -Value "C:\Users\Default\Links\NordTheme_2_4_4_0.crx" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\Nord" -Name "Version" -Type String -Value "2.4.4" -Force -EA SilentlyContinue
- # Set Bit Warden extension root key
- New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\Ward" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\Ward" -Name "Path" -Type String -Value "C:\Users\Default\Links\BitWarden_extension_1_56_4_0.crx" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\Ward" -Name "Version" -Type String -Value "2" -Force -EA SilentlyContinue
- # Set Ublock Origin extension root key
- New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\UORG" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\UORG" -Name "Path" -Type String -Value "C:\Users\Default\Links\Ublock_Orgin_extension_1_41_2_0.crx" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\UORG" -Name "Version" -Type String -Value "2" -Force -EA SilentlyContinue
- # ======== Brave Settings ======== #
- # Set Extensions root key
- New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions" -EA SilentlyContinue
- # Set Nord Theme extension root key
- New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\Nord" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\Nord" -Name "Path" -Type String -Value "C:\Users\Default\Links\NordTheme_2_4_4_0.crx" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\Nord" -Name "Version" -Type String -Value "2.4.4" -Force -EA SilentlyContinue
- # Set Bit Warden extension root key
- New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\Ward" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\Ward" -Name "Path" -Type String -Value "C:\Users\Default\Links\BitWarden_extension_1_56_4_0.crx" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\Ward" -Name "Version" -Type String -Value "2" -Force -EA SilentlyContinue
- # Set Ublock Origin extension root key
- New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\UORG" -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\UORG" -Name "Path" -Type String -Value "C:\Users\Default\Links\Ublock_Orgin_extension_1_41_2_0.crx" -Force -EA SilentlyContinue
- New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\BraveSoftware\Brave-Browser\Extensions\UORG" -Name "Version" -Type String -Value "2" -Force -EA SilentlyContinue
- $Currentlocation = (Get-Location).path
- sl $env:USERPROFILE\Desktop\
- Get-ChildItem *.lnk | foreach { Remove-Item -Path $_.FullName }
- Get-ChildItem $env:Public\Desktop\*.lnk | ForEach-Object { Remove-Item $_ }
- sl $Currentlocation
- }
- #=====[ Software Removal ]=====#
- # OneDrive Uninstallation
- Write-Host "Uninstalling OneDrive..."
- Stop-Process -Name "OneDrive" -ErrorAction SilentlyContinue
- Start-Sleep -s 2
- $onedrive = "$env:SYSTEMROOT\SysWOW64\OneDriveSetup.exe"
- If (!(Test-Path $onedrive)) {
- $onedrive = "$env:SYSTEMROOT\System32\OneDriveSetup.exe"
- Start-Process $onedrive "/uninstall" -NoNewWindow -Wait
- Stop-Process -Name "explorer" -ErrorAction SilentlyContinue
- Remove-Item -Path "$env:USERPROFILE\OneDrive" -Force -Recurse -ErrorAction SilentlyContinue
- Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\OneDrive" -Force -Recurse -ErrorAction SilentlyContinue
- Remove-Item -Path "$env:PROGRAMDATA\Microsoft OneDrive" -Force -Recurse -ErrorAction SilentlyContinue
- Remove-Item -Path "$env:SYSTEMDRIVE\OneDriveTemp" -Force -Recurse -ErrorAction SilentlyContinue
- Remove-Item -Path "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -ErrorAction SilentlyContinue
- Remove-Item -Path "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -ErrorAction SilentlyContinue}
- $Bloatware = @(
- #Unnecessary Windows 10 AppX Apps
- "*3DViewer*"
- "*3dbuilder*"
- "*ACGMediaPlayer*"
- "*ActiproSoftwareLLC*"
- "*AdobePhotoshopExpress*"
- "*AdobeSystemsIncorporated.AdobePhotoshopExpress*"
- "*AssignedAccessLockApp*"
- "*AutodeskSketchBook*"
- "*BethesdaSoftworks.FalloutShelter*"
- "*Bing*"
- "*BubbleWitch3Saga*"
- "*CandyCrush*"
- "*CommsPhone*"
- "*ConnectivityStore*"
- "*Dolby*"
- "*Duolingo-LearnLanguagesforFree*"
- "*EclipseManager*"
- "*Facebook*"
- "*FarmVille2CountryEscape*"
- "*FeedbackHub*"
- "*Flipboard*"
- "*Getstarted*"
- "*HiddenCity*"
- "*HiddenCityMysteryofShadows*"
- "*Hulu*"
- "*LinkedInforWindows*"
- "*Linkedin*"
- "*Microsoft.3dbuilder*"
- "*Microsoft.549981C3F5F10*"
- "*Microsoft.Asphalt8Airborne*"
- "*Microsoft.BingFinance*"
- "*Microsoft.BingNews*"
- "*Microsoft.BingWeather*"
- "*Microsoft.Caclulator*"
- "*Microsoft.DrawboardPDF*"
- "*Microsoft.GetHelp*"
- "*Microsoft.Getstarted*"
- "*Microsoft.MSPaint*"
- "*Microsoft.Messaging*"
- "*Microsoft.MicrosoftOfficeHub*"
- "*Microsoft.MicrosoftSolitaireCollection*"
- "*Microsoft.MsixPackagingTool*"
- "*Microsoft.OneConnect*"
- "*Microsoft.People*"
- "*Microsoft.Print3D*"
- "*Microsoft.SkypeApp*"
- "*Microsoft.Wallet*"
- "*Microsoft.Windows.Photos*"
- "*Microsoft.WindowsAlarms*"
- "*Microsoft.WindowsCamera*"
- "*Microsoft.WindowsFeedbackHub*"
- "*Microsoft.WindowsMaps*"
- "*Microsoft.WindowsSoundRecorder*"
- "*Microsoft.WindowsStore*"
- "*Microsoft.Xbox.TCUI*"
- "*Microsoft.XboxApp*"
- "*Microsoft.XboxGameOverlay*"
- "*Microsoft.XboxGamingOverlay*"
- "*Microsoft.XboxIdentityProvider*"
- "*Microsoft.XboxSpeechToTextOverlay*"
- "*Microsoft.YourPhone*"
- "*Microsoft.ZuneMusic*"
- "*Microsoft.ZuneVideo*"
- "*Microsoft3DViewer*"
- "*MicrosoftOfficeHub*"
- "*MinecraftUWP*"
- "*MixedReality*"
- "*Netflix*"
- "*Office.Sway*"
- "*OneCalendar*"
- "*OneNote*"
- "*Paint*"
- "*PandoraMediaInc*"
- "*PinningConfirmationDialog*"
- "*Royal Revolt*"
- "*SecureAssessmentBrowser*"
- "*Sketchable*"
- "*SkypeApp*"
- "*Speed Test*"
- "*Sticky*"
- "*Store*"
- "*Sway*"
- "*Todos*"
- "*Twitter*"
- "*Viber*"
- "*WindowsCalculator*"
- "*WindowsCamera*"
- "*WindowsMaps*"
- "*WindowsPhone*"
- "*WindowsScan*"
- "*WindowsSoundRecorder*"
- "*Wunderlist*"
- "*Xbox*"
- "*XboxApp*"
- "*XboxGameOverlay*"
- "*XboxGamingOverlay*"
- "*XboxOneSmartGlass*"
- "*XboxSpeechToTextOverlay*"
- "*Xboxapp*"
- "*YourPhone*"
- "*advertising*"
- "*appconnector"
- "*bing*"
- "*bingfinance*"
- "*bingnews*"
- "*bingsports*"
- "*bingweather*"
- "*candy*"
- "*commsphone*"
- "*connectivitystore*"
- "*dropbox*"
- "*feed*"
- "*flaregamesGmbH.RoyalRevolt2*"
- "*freshpaint*"
- "*getstarted*"
- "*king.com.CandyCrushSodaSaga*"
- "*messag*"
- "*microsoft.windowscommunicationsapps*"
- "*mspaint*"
- "*netflix*"
- "*office*"
- "*officehub*"
- "*onenote*"
- "*people*"
- "*photos*"
- "*print3D*"
- "*reality*"
- "*sketch*"
- "*skype*"
- "*skypeapp*"
- "*solit*"
- "*solitaire*"
- "*solitairecollection*"
- "*soundrecorder*"
- "*sway*"
- "*twitter*"
- "*wallet*"
- "*windowsalarms*"
- "*windowscamera*"
- "*windowscommunicationsapps*"
- "*windowsmaps*"
- "*windowsphone*"
- "*xbox*"
- "*xboxapp*"
- "*yourphone*"
- "*zune*"
- "*zunemusic*"
- "*zunevideo*"
- "DellInc.DellDigitalDelivery"
- "Microsoft.3DBuilder"
- "Microsoft.AppConnector"
- "Microsoft.BingFinance"
- "Microsoft.BingNews"
- "Microsoft.BingSports"
- "Microsoft.BingTranslator"
- "Microsoft.BingWeather"
- "Microsoft.GetHelp"
- "Microsoft.Getstarted"
- "Microsoft.Messaging"
- "Microsoft.Microsoft3DViewer"
- "Microsoft.MicrosoftSolitaireCollection"
- "Microsoft.NetworkSpeedTest"
- "Microsoft.News"
- "Microsoft.Office.Lens"
- "Microsoft.Office.Sway"
- "Microsoft.OneConnect"
- "Microsoft.People"
- "Microsoft.Print3D"
- "Microsoft.SkypeApp"
- "Microsoft.StorePurchaseApp"
- "Microsoft.Wallet"
- "Microsoft.Whiteboard"
- "Microsoft.WindowsAlarms"
- "Microsoft.WindowsFeedbackHub"
- "Microsoft.WindowsMaps"
- "Microsoft.WindowsSoundRecorder"
- "Microsoft.Xbox.TCUI"
- "Microsoft.XboxGamingOverlay"
- "Microsoft.XboxIdentityProvider"
- "Microsoft.XboxSpeechToTextOverlay"
- "Microsoft.ZuneMusic"
- "Microsoft.ZuneVideo"
- "microsoft.windowscommunicationsapps"
- )
- foreach ($Bloat in $Bloatware) {
- Get-AppxPackage -allusers -Name $Bloat| Remove-AppxPackage -allusers -ErrorAction SilentlyContinue
- Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Bloat | Remove-AppxProvisionedPackage -Online
- Write-Host "Trying to remove $Bloat."
- }
- # Uninstall specific bloatware
- Get-Package -Name "*office*" | Uninstall-Package
- Get-Package -Name "*Microsoft 365*" | Uninstall-Package
- #=====[ Software Installtion ]=====#
- # Install Software Management utility Chocolatey.
- # Write Script to Install Chocolately
- Set-Content -Path 'C:\Automation\Choco00.ps1' -Value {
- Set-ExecutionPolicy Bypass -Scope Process -Force
- Set-Location -Path C:\Automation
- [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
- iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- }
- # Invoke Script to Install Chocolately
- Invoke-Expression 'cmd /c start powershell -Command { powershell.exe C:\Automation\Choco00.ps1 }'
- ## Install the older better Media Player
- Enable-WindowsOptionalFeature -Online -FeatureName "WindowsMediaPlayer" -NoRestart -WarningAction SilentlyContinue | Out-Null
- ## Install the older better calculator
- $URL = 'https://www.mediafire.com/file/8rzj2o2apgn7t8r/oldcalcWin11Win10.zip/file'
- $DownloadLink2 = (Invoke-WebRequest -Uri $URL -UseBasicParsing).Links | sort-object href -Unique | Select-Object href | Select-String -Pattern 'https://download' -SimpleMatch
- $DownloadLink1 = $DownloadLink2 -replace "@{href=" -replace "" ; $Source = $DownloadLink1 -replace "}" -replace ""
- $DIR = $(get-location).Path ; $APP = ($Source.Split('/',6) | Select -Index 5) ; $DIRAPP = $DIR + "\" + $APP
- Start-BitsTransfer -Source $Source -Destination $DIRAPP
- Expand-Archive -LiteralPath 'C:\temp\oldcalcWin11Win10.zip' -DestinationPath C:\temp\
- Start C:\temp\OldClassicCalc-2.0-setup.exe
- Sleep 4
- $wshell = New-Object -ComObject wscript.shell;
- $wshell.AppActivate('Setup Old Classic Calculator for Windows 11 and Windows 10')
- Sleep 4
- $wshell.SendKeys('~')
- Sleep 2
- $wshell.SendKeys("%(N)")
- Sleep 2
- $wshell.SendKeys("%(D)")
- Sleep 2
- $wshell.SendKeys("%(N)")
- Sleep 4
- $wshell.SendKeys("%(I)")
- Sleep 3
- $wshell.SendKeys(' ')
- Sleep 1
- $wshell.SendKeys('{TAB}')
- Sleep 2
- $wshell.SendKeys(' ')
- Sleep 2
- $wshell.SendKeys("%(F)")
- sleep 10
- Remove-Item -Recurse -Force C:\temp\OldClassicCalc-2.0-setup.exe -EA SilentlyContinue
- Remove-Item -Recurse -Force C:\temp\oldcalcWin11Win10.zip -EA SilentlyContinue
- ### Running Shutup10 and using recomended settings
- Import-Module BitsTransfer
- choco install shutup10 -y
- Start-BitsTransfer -Source "https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg" -Destination ".\ooshutup10.cfg"
- OOSU10 ooshutup10.cfg /quiet
- Start-BitsTransfer -Source "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -Destination ".\OOSU10.exe"
- ./OOSU10.exe ooshutup10.cfg /quiet
- ### Download and install OpenDrive.
- Start-BitsTransfer -Source "https://www.opendrive.com/wp-content/uploads/releases/windows/setup.exe" -Destination OpenDrive.exe
- $Dir = $(get-location).Path;
- $App_OpenDrive = 'OpenDrive.exe'
- $DirAPPOD = $Dir + '\' + $App_OpenDrive
- Start-Process -Wait -FilePath $DirAPPOD -Argument "/silent" -PassThru
Add Comment
Please, Sign In to add comment