mirror of
https://github.com/Disassembler0/Win10-Initial-Setup-Script.git
synced 2026-04-23 03:00:50 -04:00
Merge "DisableLockScreenSpotlight" into "DisableAppSuggestions"
This commit is contained in:
@@ -8,7 +8,6 @@ DisableWiFiSense
|
||||
DisableWebSearch
|
||||
DisableAppSuggestions
|
||||
DisableBackgroundApps
|
||||
DisableLockScreenSpotlight
|
||||
DisableLocationTracking
|
||||
DisableMapUpdates
|
||||
DisableFeedback
|
||||
|
||||
19
Win10.ps1
19
Win10.ps1
@@ -17,7 +17,6 @@ $tweaks = @(
|
||||
"DisableWebSearch", # "EnableWebSearch",
|
||||
"DisableAppSuggestions", # "EnableAppSuggestions",
|
||||
"DisableBackgroundApps", # "EnableBackgroundApps",
|
||||
"DisableLockScreenSpotlight", # "EnableLockScreenSpotlight",
|
||||
"DisableLocationTracking", # "EnableLocationTracking",
|
||||
"DisableMapUpdates", # "EnableMapUpdates",
|
||||
"DisableFeedback", # "EnableFeedback",
|
||||
@@ -267,6 +266,7 @@ Function DisableAppSuggestions {
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEnabled" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEverEnabled" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SilentInstalledAppsEnabled" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338388Enabled" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338389Enabled" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-353698Enabled" -Type DWord -Value 0
|
||||
@@ -288,6 +288,7 @@ Function EnableAppSuggestions {
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338388Enabled" -Type DWord -Value 1
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338389Enabled" -Type DWord -Value 1
|
||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SystemPaneSuggestionsEnabled" -Type DWord -Value 1
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-353698Enabled" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableWindowsConsumerFeatures" -ErrorAction SilentlyContinue
|
||||
}
|
||||
@@ -310,22 +311,6 @@ Function EnableBackgroundApps {
|
||||
}
|
||||
}
|
||||
|
||||
# Disable Lock screen Spotlight - New backgrounds, tips, advertisements etc.
|
||||
Function DisableLockScreenSpotlight {
|
||||
Write-Output "Disabling Lock screen spotlight..."
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "RotatingLockScreenEnabled" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "RotatingLockScreenOverlayEnabled" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -Type DWord -Value 0
|
||||
}
|
||||
|
||||
# Enable Lock screen Spotlight
|
||||
Function EnableLockScreenSpotlight {
|
||||
Write-Output "Disabling Lock screen spotlight..."
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "RotatingLockScreenEnabled" -Type DWord -Value 1
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "RotatingLockScreenOverlayEnabled" -Type DWord -Value 1
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Disable Location Tracking
|
||||
Function DisableLocationTracking {
|
||||
Write-Output "Disabling Location Tracking..."
|
||||
|
||||
Reference in New Issue
Block a user