Added Disable App Location Notification to Login
This commit is contained in:
parent
f311c991c1
commit
caabc90a1c
13
Login/Disable-AppLocationNotify.ps1
Normal file
13
Login/Disable-AppLocationNotify.ps1
Normal 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
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user