From caabc90a1cf9eef86eb5c7d38de94f7a5fb04943 Mon Sep 17 00:00:00 2001 From: bschaper Date: Thu, 12 Dec 2024 13:37:47 -0600 Subject: [PATCH] Added Disable App Location Notification to Login --- Login/Disable-AppLocationNotify.ps1 | 13 +++++++++++++ TCSE-Login.bat | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 Login/Disable-AppLocationNotify.ps1 diff --git a/Login/Disable-AppLocationNotify.ps1 b/Login/Disable-AppLocationNotify.ps1 new file mode 100644 index 0000000..abf3f00 --- /dev/null +++ b/Login/Disable-AppLocationNotify.ps1 @@ -0,0 +1,13 @@ +# Specify the registry path and new DWORD value information +$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" +$valueName = "ShowGlobalPrompts" +$valueData = 0 + +# Check if the registry key exists +if (!(Test-Path $registryPath)) { + # Create the registry key if it doesn't exist + New-Item -Path $registryPath -ItemType RegistryKey -Force +} + +# Set the DWORD value +Set-ItemProperty -Path $registryPath -Name $valueName -Value $valueData -Type DWORD -Force \ No newline at end of file diff --git a/TCSE-Login.bat b/TCSE-Login.bat index 787a464..0775a8c 100644 --- a/TCSE-Login.bat +++ b/TCSE-Login.bat @@ -25,6 +25,10 @@ powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\DefaultApp-ImageGlass :: Run Debloat Script powershell -ExecutionPolicy Bypass -File "C:\Scripts\Software\Win11Debloat\Win11Debloat.ps1" -Silent -RemoveW11Outlook -DisableTelemetry -DisableBing -DisableSuggestions -DisableLockscreenTips -ShowKnownFileExt +:: Disable App Location Request Notification +echo Disable App Location Request Notification... >> "%LOGFILE%" +powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Disable-AppLocationNotify.ps1" + :: Disable OneDrive Startup echo Disable OneDrive Startup... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Disable-OneDriveStartup.ps1"