diff --git a/config/tweaks.json b/config/tweaks.json index 492b9e0b..ebf692bf 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -1,14 +1,14 @@ { "WPFTweaksActivity": { "Content": "Activity History - Disable", - "Description": "Erases recent docs, clipboard, and run history.", + "Description": "Stops Windows from publishing or uploading user activities while preserving clipboard history.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "EnableActivityFeed", - "Value": "0", + "Value": "1", "Type": "DWord", "OriginalValue": "" }, diff --git a/pester/activity-history.Tests.ps1 b/pester/activity-history.Tests.ps1 new file mode 100644 index 00000000..a4e75957 --- /dev/null +++ b/pester/activity-history.Tests.ps1 @@ -0,0 +1,19 @@ +Describe "Activity history config" { + It "disables activity publishing while preserving clipboard history" { + $configPath = Join-Path $PSScriptRoot "..\config\tweaks.json" + $tweaks = Get-Content -Path $configPath -Raw | ConvertFrom-Json + $activityRegistry = @($tweaks.WPFTweaksActivity.registry) + + $activityFeed = @($activityRegistry | Where-Object Name -eq "EnableActivityFeed") + $activityFeed | Should -HaveCount 1 + $activityFeed[0].Value | Should -Be "1" + + foreach ($policyName in @("PublishUserActivities", "UploadUserActivities")) { + $policy = @($activityRegistry | Where-Object Name -eq $policyName) + $policy | Should -HaveCount 1 + $policy[0].Value | Should -Be "0" + } + + $activityRegistry.Name | Should -Not -Contain "AllowClipboardHistory" + } +}