From 9e75928ce781fbbc7d33798ad2a6f62c31a844a0 Mon Sep 17 00:00:00 2001 From: Treader Date: Thu, 1 Jun 2023 13:00:06 -0400 Subject: [PATCH 1/4] Update decrapify.ps1 Updated a few sections to include quicker use of functions/strings. --- decrapify.ps1 | 170 +++++++++++++++++++++++++++++++------------------- 1 file changed, 106 insertions(+), 64 deletions(-) diff --git a/decrapify.ps1 b/decrapify.ps1 index 5e77438..e846517 100644 --- a/decrapify.ps1 +++ b/decrapify.ps1 @@ -36,9 +36,9 @@ Set-ItemProperty -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\Allo # Set-ItemProperty -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" -Name "Value" -Type DWord -Value 1 # Disable SmartScreen Filter -Write-Host "Disabling SmartScreen Filter..." -Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "SmartScreenEnabled" -Type String -Value "Off" -Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\AppHost" -Name "EnableWebContentEvaluation" -Type DWord -Value 0 +#Write-Host "Disabling SmartScreen Filter..." +#Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "SmartScreenEnabled" -Type String -Value "Off" +#Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\AppHost" -Name "EnableWebContentEvaluation" -Type DWord -Value 0 # Enable SmartScreen Filter # Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "SmartScreenEnabled" -Type String -Value "RequireAdmin" @@ -145,8 +145,8 @@ Set-Service "DiagTrack" -StartupType Disabled # Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Type DWord -Value 0 # Raise UAC level -# Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Type DWord -Value 5 -# Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Type DWord -Value 1 +Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Type DWord -Value 5 +Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Type DWord -Value 1 # Enable sharing mapped drives between users # Write-Host "Enabling sharing mapped drives between users..." @@ -176,12 +176,12 @@ Set-ItemProperty -Path "HKLM:\Software\Microsoft\WindowsUpdate\UX\Settings" -Nam # Enable Windows Update automatic restart # Set-ItemProperty -Path "HKLM:\Software\Microsoft\WindowsUpdate\UX\Settings" -Name "UxOption" -Type DWord -Value 0 -# Stop and disable Home Groups services -Write-Host "Stopping and disabling Home Groups services..." -Stop-Service "HomeGroupListener" -Set-Service "HomeGroupListener" -StartupType Disabled -Stop-Service "HomeGroupProvider" -Set-Service "HomeGroupProvider" -StartupType Disabled +# Stop and disable Home Groups services - Moved to Services section +#Write-Host "Stopping and disabling Home Groups services..." +#Stop-Service "HomeGroupListener" +#Set-Service "HomeGroupListener" -StartupType Disabled +#Stop-Service "HomeGroupProvider" +#Set-Service "HomeGroupProvider" -StartupType Disabled # Enable and start Home Groups services # Set-Service "HomeGroupListener" -StartupType Manual @@ -231,18 +231,18 @@ Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server\W # Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Personalization" -Name "NoLockScreen" # Disable Autoplay -# Write-Host "Disabling Autoplay..." -# Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" -Name "DisableAutoplay" -Type DWord -Value 1 +Write-Host "Disabling Autoplay..." +Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" -Name "DisableAutoplay" -Type DWord -Value 1 # Enable Autoplay # Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" -Name "DisableAutoplay" -Type DWord -Value 0 -# Disable Autorun for all drives -# Write-Host "Disabling Autorun for all drives..." -# If (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) { -# New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" | Out-Null -#} -# Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoDriveTypeAutoRun" -Type DWord -Value 255 +#Disable Autorun for all drives +Write-Host "Disabling Autorun for all drives..." +If (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) { + New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" | Out-Null +} +Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoDriveTypeAutoRun" -Type DWord -Value 255 # Enable Autorun # Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoDriveTypeAutoRun" @@ -262,8 +262,8 @@ Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" # Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" # Hide Task View button -# Write-Host "Hiding Task View button..." -# Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 0 +Write-Host "Hiding Task View button..." +Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 0 # Show Task View button # Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" @@ -276,8 +276,8 @@ Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" # Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarSmallIcons" # Show titles in taskbar -# Write-Host "Showing titles in taskbar..." -# Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarGlomLevel" -Type DWord -Value 1 +Write-Host "Showing titles in taskbar..." +Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarGlomLevel" -Type DWord -Value 1 # Hide titles in taskbar # Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarGlomLevel" @@ -391,6 +391,55 @@ Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer # $langs = Get-WinUserLanguageList # Set-WinUserLanguageList ($langs | ? {$_.LanguageTag -ne "en-US"}) -Force +########## +# Windows Optional Features +# Get-WindowsOptionalFeature -Online | where {$_.State -eq 'Enabled'} | select FeatureName +########## +Disable-WindowsOptionalFeature -online -NoRestart -FeatureName "Printing-Foundation-InternetPrinting-Client" +Disable-WindowsOptionalFeature -online -NoRestart -FeatureName "Printing-Foundation-Features" +Disable-WindowsOptionalFeature -online -NoRestart -FeatureName "WorkFolders-Client" +Disable-WindowsOptionalFeature -online -NoRestart -FeatureName "MicrosoftWindowsPowerShellV2" +Disable-WindowsOptionalFeature -online -NoRestart -FeatureName "MicrosoftWindowsPowerShellV2Root" +Disable-WindowsOptionalFeature -online -NoRestart -FeatureName "MSRDC-Infrastructure" + +########## +# Settings > Apps > Optional Features +# Get-WindowsCapability -Online | where {$_.state -eq 'Installed'} | Select Name +########## +Get-WindowsCapability -Online | where {$_.name -like "Microsoft.Windows.WordPad*" -and $_.State -eq 'Installed' } | Remove-WindowsCapability -Online +Get-WindowsCapability -Online | where {$_.name -like "Browser.InternetExplorer*" -and $_.State -eq 'Installed' } | Remove-WindowsCapability -Online +Get-WindowsCapability -Online | where {$_.name -like "OneCoreUAP.OneSync*" -and $_.State -eq 'Installed' } | Remove-WindowsCapability -Online + +########## +# get-appxprovisionedpackage -Online | select DisplayName +########## +$appxprovisionedpackageRemoveDisplayName = @( +"Clipchamp.Clipchamp" +"Microsoft.BingNews" +"Microsoft.BingWeather" +"Microsoft.GamingApp" +"Microsoft.GetHelp" +"Microsoft.Getstarted" +"Microsoft.MicrosoftOfficeHub" +"Microsoft.People" +"Microsoft.WindowsSoundRecorder" +"Microsoft.Todos" +"Microsoft.WindowsAlarms" +"microsoft.windowscommunicationsapps" +"Microsoft.WindowsFeedbackHub" +"Microsoft.WindowsMaps" +"Microsoft.Xbox.TCUI" +"Microsoft.XboxGameOverlay" +"Microsoft.XboxGamingOverlay" +"Microsoft.XboxIdentityProvider" +"Microsoft.XboxSpeechToTextOverlay" +"Microsoft.ZuneVideo" +"MicrosoftCorporationII.QuickAssist" +"MicrosoftTeams" +) + +get-appxprovisionedpackage -Online | where {$_.DisplayName -in $appxprovisionedpackageRemoveDisplayName} | Remove-AppxProvisionedPackage -AllUsers + ########## @@ -447,16 +496,16 @@ Get-AppxPackage "Microsoft.BingSports" | Remove-AppxPackage Get-AppxPackage "Microsoft.BingWeather" | Remove-AppxPackage Get-AppxPackage "Microsoft.Getstarted" | Remove-AppxPackage Get-AppxPackage "Microsoft.MicrosoftOfficeHub" | Remove-AppxPackage -Get-AppxPackage "Microsoft.MicrosoftSolitaireCollection" | Remove-AppxPackage +# Get-AppxPackage "Microsoft.MicrosoftSolitaireCollection" | Remove-AppxPackage Get-AppxPackage "Microsoft.Office.OneNote" | Remove-AppxPackage Get-AppxPackage "Microsoft.People" | Remove-AppxPackage Get-AppxPackage "Microsoft.SkypeApp" | Remove-AppxPackage # Get-AppxPackage "Microsoft.Windows.Photos" | Remove-AppxPackage -# Get-AppxPackage "Microsoft.WindowsAlarms" | Remove-AppxPackage -Get-AppxPackage "Microsoft.WindowsCamera" | Remove-AppxPackage +Get-AppxPackage "Microsoft.WindowsAlarms" | Remove-AppxPackage +# Get-AppxPackage "Microsoft.WindowsCamera" | Remove-AppxPackage Get-AppxPackage "microsoft.windowscommunicationsapps" | Remove-AppxPackage Get-AppxPackage "Microsoft.WindowsMaps" | Remove-AppxPackage -Get-AppxPackage "Microsoft.WindowsPhone" | Remove-AppxPackage +# Get-AppxPackage "Microsoft.WindowsPhone" | Remove-AppxPackage Get-AppxPackage "Microsoft.WindowsSoundRecorder" | Remove-AppxPackage Get-AppxPackage "Microsoft.XboxApp" | Remove-AppxPackage # Get-AppxPackage "Microsoft.ZuneMusic" | Remove-AppxPackage @@ -485,7 +534,6 @@ Get-AppxPackage "AdobeSystemsIncorporated.AdobeCreativeCloudExpress" | Remove-Ap Get-AppxPackage "AmazonVideo.PrimeVideo" | Remove-AppPackage Get-AppxPackage "BytedancePte.Ltd.TikTok" | Remove-AppPackage - # Install default Microsoft applications # Add-AppxPackage -DisableDevelopmentMode -Register "$($(Get-AppXPackage -AllUsers "Microsoft.3DBuilder").InstallLocation)\AppXManifest.xml" # Add-AppxPackage -DisableDevelopmentMode -Register "$($(Get-AppXPackage -AllUsers "Microsoft.BingFinance").InstallLocation)\AppXManifest.xml" @@ -527,10 +575,6 @@ Get-AppxPackage "BytedancePte.Ltd.TikTok" | Remove-AppPackage # Install Windows Media Player # dism /online /Enable-Feature /FeatureName:MediaPlayback /Quiet /NoRestart -# Uninstall Work Folders Client -Write-Host "Uninstalling Work Folders Client..." -dism /online /Disable-Feature /FeatureName:WorkFolders-Client /Quiet /NoRestart - # Install Work Folders Client # dism /online /Enable-Feature /FeatureName:WorkFolders-Client /Quiet /NoRestart @@ -589,7 +633,7 @@ $services = @( # "RemoteRegistry" # Remote Registry "SharedAccess" # Internet Connection Sharing (ICS) "TrkWks" # Distributed Link Tracking Client - # "WbioSrvc" # Windows Biometric Service (required for Fingerprint reader / facial detection) + "WbioSrvc" # Windows Biometric Service (required for Fingerprint reader / facial detection) #"WlanSvc" # WLAN AutoConfig "WMPNetworkSvc" # Windows Media Player Network Sharing Service #"wscsvc" # Windows Security Center Service @@ -598,46 +642,44 @@ $services = @( "XblGameSave" # Xbox Live Game Save Service "XboxNetApiSvc" # Xbox Live Networking Service "ndu" # Windows Network Data Usage Monitor + "HomeGroupListener" + "HomeGroupProvider" # Services which cannot be disabled #"WdNisSvc" ) -foreach ($service in $services) { - Write-Output "Trying to disable $service" - Get-Service -Name $service | Set-Service -StartupType Disabled -} - +Get-Service | where {$_.name -in $services} | stop-service -passthru | Set-Service -StartupType Disabled # Description: # This script optimizes Windows updates by disabling automatic download and # seeding updates to other computers. # -Import-Module -DisableNameChecking $PSScriptRoot\..\lib\New-FolderForced.psm1 - -Write-Output "Disable automatic download and installation of Windows updates" -New-FolderForced -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" -Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" "NoAutoUpdate" 0 -Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" "AUOptions" 2 -Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" "ScheduledInstallDay" 0 -Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" "ScheduledInstallTime" 3 - -Write-Output "Disable seeding of updates to other computers via Group Policies" -New-FolderForced -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" -Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" "DODownloadMode" 0 - -#echo "Disabling automatic driver update" -#sp "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" "SearchOrderConfig" 0 - -$objSID = New-Object System.Security.Principal.SecurityIdentifier "S-1-1-0" -$EveryOne = $objSID.Translate( [System.Security.Principal.NTAccount]).Value - - -Write-Output "Disable 'Updates are available' message" - -takeown /F "$env:WinDIR\System32\MusNotification.exe" -icacls "$env:WinDIR\System32\MusNotification.exe" /deny "$($EveryOne):(X)" -takeown /F "$env:WinDIR\System32\MusNotificationUx.exe" -icacls "$env:WinDIR\System32\MusNotificationUx.exe" /deny "$($EveryOne):(X)" +#Import-Module -DisableNameChecking $PSScriptRoot\..\lib\New-FolderForced.psm1 + +#Write-Output "Disable automatic download and installation of Windows updates" +#New-FolderForced -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" +#Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" "NoAutoUpdate" 0 +#Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" "AUOptions" 2 +#Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" "ScheduledInstallDay" 0 +#Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU" "ScheduledInstallTime" 3 + +#Write-Output "Disable seeding of updates to other computers via Group Policies" +#New-FolderForced -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" +#Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" "DODownloadMode" 0 +# +##echo "Disabling automatic driver update" +##sp "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" "SearchOrderConfig" 0 +# +#$objSID = New-Object System.Security.Principal.SecurityIdentifier "S-1-1-0" +##$EveryOne = $objSID.Translate( [System.Security.Principal.NTAccount]).Value +# +# +#Write-Output "Disable 'Updates are available' message" +# +#takeown /F "$env:WinDIR\System32\MusNotification.exe" +#icacls "$env:WinDIR\System32\MusNotification.exe" /deny "$($EveryOne):(X)" +#takeown /F "$env:WinDIR\System32\MusNotificationUx.exe" +#icacls "$env:WinDIR\System32\MusNotificationUx.exe" /deny "$($EveryOne):(X)" # This script removes unwanted Apps that come with Windows. If you do not want From c6203248cff0ecc0eac7dfa3519345f0207c9863 Mon Sep 17 00:00:00 2001 From: Treader Date: Thu, 1 Jun 2023 19:10:10 -0400 Subject: [PATCH 2/4] Added Right click option --- decrapify.ps1 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/decrapify.ps1 b/decrapify.ps1 index e846517..722cc0a 100644 --- a/decrapify.ps1 +++ b/decrapify.ps1 @@ -650,6 +650,29 @@ $services = @( Get-Service | where {$_.name -in $services} | stop-service -passthru | Set-Service -StartupType Disabled +## Auto lock +Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "InactivityTimeoutSecs" -Type DWord -Value 1200 +## Disable Auto lock +# Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "InactivityTimeoutSecs" -Type DWord -Value 0 + +## Old Right click +If (!(Test-Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}")) { + New-Item -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" | Out-Null +} +If (!(Test-Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InProcServer32")) { + New-Item -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InProcServer32" | Out-Null +} +Set-ItemProperty -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InProcServer32" -Name "(Default)" -Value "" +## Enable New Right Click +# Set-ItemProperty -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InProcServer32" -Name "" -Value "C:\Windows\System32\Windows.UI.FileExplorer.dll" +# STOP HERE Treader +exit + + + + + + # Description: # This script optimizes Windows updates by disabling automatic download and # seeding updates to other computers. From af0964fcd1b2d04d3e40b53ba097ea7e48a48b8b Mon Sep 17 00:00:00 2001 From: Treader Date: Thu, 1 Jun 2023 20:55:00 -0400 Subject: [PATCH 3/4] Edge policy work Disable tab prefetch, disable tab autoload, disable edge on startup. --- decrapify.ps1 | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/decrapify.ps1 b/decrapify.ps1 index 722cc0a..d8b4d80 100644 --- a/decrapify.ps1 +++ b/decrapify.ps1 @@ -665,10 +665,48 @@ If (!(Test-Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae Set-ItemProperty -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InProcServer32" -Name "(Default)" -Value "" ## Enable New Right Click # Set-ItemProperty -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InProcServer32" -Name "" -Value "C:\Windows\System32\Windows.UI.FileExplorer.dll" + +## Disable Edge running in background +If (!(Test-Path "HKLM:\Software\Policies\Microsoft\Edge")) { + New-Item -Path "HKLM:\Software\Policies\Microsoft\Edge" | Out-Null + New-Item -Path "HKLM:\Software\Policies\Microsoft\Edge\Recommended" | Out-Null +} +Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Edge" -Name "BackgroundModeEnabled" -Type Dword -Value 0 + +## Disable Pre Launch +If (!(Test-Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge")) { + New-Item -Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge" | Out-Null +} +If (!(Test-Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main")) { + New-Item -Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main" | Out-Null +} +Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main" -Name "AllowPrelaunch" -Type Dword -Value 0 + +## Disable Edge Startup Boost +Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Edge\" -Name "StartupBoostEnabled" -Type Dword -Value 0 +Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -name "MicrosoftEdgeAutoLaunch*" + +## Disable Tab Preloading +If (!(Test-Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge\TabPreloader")) { + New-Item -Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge\TabPreloader" | Out-Null +} +Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge\TabPreloader" -Name "AllowTabPreloading" -Type Dword -Value 0 +Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main" -Name "NewTabPagePrerenderEnabled" -Type Dword -Value 0 + # STOP HERE Treader exit - +### +### +### +### +### +### +### +### +### +### +### From bc72d6d53e7d58f5f0350eb5ae9f7f89e47ab087 Mon Sep 17 00:00:00 2001 From: Treader Date: Mon, 4 Sep 2023 11:36:05 -0400 Subject: [PATCH 4/4] Update decrapify.ps1 Edit with Photoshop --- decrapify.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/decrapify.ps1 b/decrapify.ps1 index d8b4d80..a2c1100 100644 --- a/decrapify.ps1 +++ b/decrapify.ps1 @@ -1168,6 +1168,13 @@ reg add "HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Pe reg add "HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "AppsUseLightTheme" /t "REG_DWORD" /d "0" /f reg add "HKEY_USERS\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "SystemUsesLightTheme" /t "REG_DWORD" /d "0" /f +# Add Open in Photoshop to image files. +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\Shell\Edit with Photoshop" +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\Shell\Edit with Photoshop\command" +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\Shell\Edit with Photoshop\command" /ve /d "\"c:\program files\adobe\adobe photoshop 2023\Photoshop.exe\" \"%1\"" + + + ########## # Restart ##########