2
0

Added Disable App Location Notification to Login

This commit is contained in:
bschaper 2024-12-12 13:37:47 -06:00
parent f311c991c1
commit caabc90a1c
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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"