-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.ps1
More file actions
81 lines (73 loc) · 5.88 KB
/
verify.ps1
File metadata and controls
81 lines (73 loc) · 5.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#Requires -RunAsAdministrator
<#
.SYNOPSIS
Verifies that all Windows 11 declutter changes are applied.
.DESCRIPTION
Checks registry keys, services, and app removal status.
Run after reboot to confirm everything took effect.
#>
Write-Host "`n=== Post-Reboot Verification ===" -ForegroundColor Cyan
$ok = 0; $warn = 0; $miss = 0
# --- Registry checks ---
$checks = @(
@{ Path="HKCU:\Software\Policies\Microsoft\Windows\WindowsCopilot"; Name="TurnOffWindowsCopilot"; Expect=1; Label="Copilot policy disabled" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="ShowCopilotButton"; Expect=0; Label="Copilot button hidden" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="ShowTaskViewButton"; Expect=0; Label="Task View button hidden" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="TaskbarMn"; Expect=0; Label="Chat (Teams) button hidden" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="TaskbarDa"; Expect=0; Label="Widgets button hidden" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="Start_IrisRecommendations"; Expect=0; Label="Start recommendations off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"; Name="Start_TrackDocs"; Expect=0; Label="Recent items tracking off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; Name="SilentInstalledAppsEnabled"; Expect=0; Label="Silent app installs off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; Name="ContentDeliveryAllowed"; Expect=0; Label="Content delivery off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; Name="SoftLandingEnabled"; Expect=0; Label="Software suggestions off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; Name="SubscribedContent-338389Enabled"; Expect=0; Label="Start suggested apps off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; Name="SubscribedContent-310093Enabled"; Expect=0; Label="Start occasional suggestions off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; Name="SubscribedContent-338388Enabled"; Expect=0; Label="Lock screen tips off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; Name="SubscribedContent-338387Enabled"; Expect=0; Label="Tips notifications off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"; Name="RotatingLockScreenEnabled"; Expect=0; Label="Lock screen spotlight off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo"; Name="Enabled"; Expect=0; Label="Advertising ID off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Privacy"; Name="TailoredExperiencesWithDiagnosticDataEnabled"; Expect=0; Label="Tailored experiences off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\SearchSettings"; Name="IsDynamicSearchBoxEnabled"; Expect=0; Label="Search highlights off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Search"; Name="BingSearchEnabled"; Expect=0; Label="Bing search off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"; Name="EnableTransparency"; Expect=0; Label="Transparency off" },
@{ Path="HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects"; Name="VisualFXSetting"; Expect=2; Label="Visual effects: best performance" },
@{ Path="HKCU:\Software\Microsoft\GameBar"; Name="AutoGameModeEnabled"; Expect=0; Label="Game Bar auto mode off" },
@{ Path="HKCU:\System\GameConfigStore"; Name="GameDVR_Enabled"; Expect=0; Label="Game DVR off" }
)
foreach ($c in $checks) {
try {
$val = (Get-ItemProperty -Path $c.Path -Name $c.Name -ErrorAction Stop).$($c.Name)
if ($val -eq $c.Expect) { Write-Host " [OK] $($c.Label)" -ForegroundColor Green; $ok++ }
else { Write-Host " [!!] $($c.Label) = $val (expected $($c.Expect))" -ForegroundColor Yellow; $warn++ }
} catch {
Write-Host " [--] $($c.Label) - not set" -ForegroundColor DarkYellow; $miss++
}
}
# --- Services ---
Write-Host "`n--- Services ---" -ForegroundColor Cyan
foreach ($svc in @("DiagTrack","dmwappushservice","XblAuthManager","XblGameSave","XboxNetApiSvc","XboxGipSvc","RetailDemo")) {
$s = Get-Service -Name $svc -ErrorAction SilentlyContinue
if (!$s) { Write-Host " [OK] $svc not present" -ForegroundColor Green; $ok++ }
elseif ($s.StartType -eq "Disabled") { Write-Host " [OK] $svc disabled (Status: $($s.Status))" -ForegroundColor Green; $ok++ }
else { Write-Host " [!!] $svc StartType=$($s.StartType) Status=$($s.Status)" -ForegroundColor Yellow; $warn++ }
}
# --- Removed apps ---
Write-Host "`n--- Removed Apps ---" -ForegroundColor Cyan
$removedApps = @(
"Microsoft.Copilot", "Microsoft.BingNews", "Microsoft.BingWeather",
"MicrosoftWindows.Client.WebExperience", "Microsoft.MicrosoftSolitaireCollection",
"Microsoft.WindowsFeedbackHub", "Microsoft.GetHelp", "Clipchamp.Clipchamp",
"Microsoft.549981C3F5F10", "Microsoft.XboxGamingOverlay"
)
foreach ($app in $removedApps) {
$found = Get-AppxPackage -Name $app -ErrorAction SilentlyContinue
if (!$found) { Write-Host " [OK] $app removed" -ForegroundColor Green; $ok++ }
else { Write-Host " [!!] $app still installed" -ForegroundColor Yellow; $warn++ }
}
Write-Host "`n--- Summary ---" -ForegroundColor Cyan
Write-Host " Applied: $ok | Warnings: $warn | Missing: $miss" -ForegroundColor White
if ($warn -eq 0 -and $miss -eq 0) {
Write-Host "`n All clear! Your system is fully decluttered.`n" -ForegroundColor Green
} else {
Write-Host "`n Some settings may need attention. Re-run declutter.ps1 as Admin.`n" -ForegroundColor Yellow
}