Skip to content

Commit

Permalink
Add privacyguides.org Windows policies
Browse files Browse the repository at this point in the history
  • Loading branch information
valleyofdoom committed Jul 9, 2024
1 parent d0cc8e6 commit 6a7c07e
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 12 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ This section covers booting into the ISO retrieved and prepared in the previous
- Windows Server may force you to enter a password which can be optionally be removed in later steps
- If you are configuring Windows 11, press ``Shift+F10`` to open CMD and execute ``oobe\BypassNRO.cmd``. This will allow us to continue without an internet connection by unlocking the ``continue with limited setup`` option as demonstrated in the video examples below
- If you are configuring Windows 11, press ``Shift+F10`` to open CMD and execute ``oobe\BypassNRO.cmd``. This will allow us to continue without an internet connection by unlocking the ``continue with limited setup`` option as demonstrated in the video examples below. With that said, this also removes the requirement to sign in with a Microsoft account which I highly advise against for privacy reasons generally speaking
- See [assets/videos/oobe-windows7-example.mp4](/assets/videos/oobe-windows7-example.mp4)
- See [assets/videos/oobe-windows8-example.mp4](/assets/videos/oobe-windows8-example.mp4)
Expand Down Expand Up @@ -791,14 +791,23 @@ The registry settings are merged with the ``apply-registry.ps1`` script. As for
|``disable sign-in and lock last interactive user after a restart``|1. Mitigate security risk ([1](https://www.stigviewer.com/stig/windows_server_2012_2012_r2_member_server/2014-06-30/finding/V-43245))|N/A|``true``|
|``show file extensions``|1. Mitigate security risk ([1](https://www.youtube.com/watch?v=nYdS3FIu3rI))|N/A |``true``|
|``disable widgets``|1. Mitigate security risk ([1](https://www.youtube.com/watch?v=m9d-fXl3Z8k))|N/A|``true``|
|``disable customer experience improvement program``|1. Mitigating telemetry and phoning home ([1](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/jj618322(v=ws.11)))|N/A|``true``|
|``disable windows error reporting``|1. Mitigating telemetry and phoning home|N/A|``true``|
|``disable search the web or display web results in search``|1. Mitigating telemetry and phoning home|N/A|``true``|
|``disable customer experience improvement program``|1. Mitigating telemetry and phoning home ([1](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/jj618322(v=ws.11)))|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable windows error reporting``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable telemetry``|1. Mitigating telemetry and phoning home|N/A|``true``|
|``disable retrieval of online tips and help in the immersive control panel``|1. Mitigating telemetry and phoning home|N/A|``true``|
|``disable typing insights``|1. Mitigating telemetry and phoning home|N/A|``true``|
|``disable suggestions in the search box and in search home``|1. Mitigating telemetry and phoning home<br><br>2. Reducing or disabling intrusive features|N/A|``true``|
|``disable computer is out of support message``|1. Reducing or disabling intrusive features|Disables [this](https://support.microsoft.com/en-us/topic/you-received-a-notification-your-windows-7-pc-is-out-of-support-3278599f-9613-5cc1-e0ee-4f81f623adcf) intrusive message. Not relevant to users with a modern Windows version|``true``|
|``disable clipboard history``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable activity feed``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable advertising id``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable autoplay``|1. Mitigate security risk|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable cloud content``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable account-based explorer features``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable mdm enrollment``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable microsoft store push to install feature``|1. Mitigate security risk|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``mitigate web-based search info``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|
|``disable sending inking and typing data to microsoft``|1. Mitigating telemetry and phoning home|Recommended by [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies)|``true``|

### 11.4.2. Applying Options

Expand Down Expand Up @@ -964,7 +973,7 @@ I heavily discourage running debloating scripts or removing components other tha

- [AppxPackagesManager](https://github.com/valleyofdoom/AppxPackagesManager) can be used to uninstall Appx packages which ship with Windows. I recommend keeping ``Microsoft.WindowsStore`` (Microsoft Store) at the very least so that you can download applications in the future. Appx packages can also be installed without the Microsoft Store ([instructions](https://superuser.com/questions/1721755/is-there-a-way-to-install-microsoft-store-exclusive-apps-without-store)). If for whatever reason you removed the Microsoft Store, it can be restored with ``wsreset -i``

- Removing OneDrive involves opening CMD as administrator and entering the command below
- I highly recommend removing OneDrive for privacy reasons and instead, use OneDrive within a browser. Removing OneDrive involves opening CMD as administrator and entering the command below

```bat
for %a in ("SysWOW64" "System32") do (if exist "%windir%\%~a\OneDriveSetup.exe" ("%windir%\%~a\OneDriveSetup.exe" /uninstall)) && reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
Expand Down Expand Up @@ -1531,7 +1540,7 @@ This step isn't required, but can help to justify unexplained performance issues

## 11.45. Virtualization Based Security (VBS)

Virtualization Based Security negatively impacts performance ([1](https://www.tomshardware.com/news/windows-11-gaming-benchmarks-performance-vbs-hvci-security)) and in some cases, it is enabled by default. Its status can be determined by typing ``msinfo32`` in ``Win+R`` and can be disabled ([instructions](https://www.tomshardware.com/how-to/disable-vbs-windows-11)) if required.
Virtualization Based Security negatively impacts performance ([1](https://www.tomshardware.com/news/windows-11-gaming-benchmarks-performance-vbs-hvci-security)) and in some cases, it is enabled by default. Its status can be determined by typing ``msinfo32`` in ``Win+R`` and can be disabled ([instructions](https://www.tomshardware.com/how-to/disable-vbs-windows-11)) if required. On the other hand, [privacyguides.org](https://www.privacyguides.org/en/os/windows/group-policies/) recommend keeping it enabled.

## 11.46. CPU Idle States

Expand Down
181 changes: 177 additions & 4 deletions bin/apply-registry.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ $entries = @{
"apply_if" = @("disable customer experience improvement program")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Messenger\Client" = @{
"CEIP" = @{
"value" = 2
"type" = "REG_DWORD"
"apply_if" = @("disable customer experience improvement program")
}
}
"HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" = @{
"Flags" = @{
"value" = "506"
Expand Down Expand Up @@ -289,12 +296,28 @@ $entries = @{
"apply_if" = @("disable windows error reporting")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" = @{
"DefaultConsent" = @{
"max_version" = 9600
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable windows error reporting")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" = @{
"Disabled" = @{
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable windows error reporting")
}

}
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting" = @{
"DontSendAdditionalData" = @{
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable windows error reporting")
}
}
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Remote Assistance" = @{
"fAllowToGetHelp" = @{
Expand Down Expand Up @@ -343,11 +366,24 @@ $entries = @{
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" = @{
"ConnectedSearchUseWeb" = @{
"AllowCortana" = @{
"min_version" = 10240
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("mitigate web-based search info")
}
"ConnectedSearchUseWeb" = @{
"min_version" = 9600
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable search the web or display web results in search")
"apply_if" = @("mitigate web-based search info")
}
"ConnectedSearchPrivacy" = @{
"min_version" = 9600
"max_version" = 9600
"value" = 3
"type" = "REG_DWORD"
"apply_if" = @("mitigate web-based search info")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications" = @{
Expand Down Expand Up @@ -449,22 +485,56 @@ $entries = @{
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" = @{
"AllowTelemetry" = @{
"AllowTelemetry" = @{
"min_version" = 10240
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable telemetry")
}
"LimitDiagnosticLogCollection" = @{
"min_version" = 18363
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable telemetry")
}
"LimitDumpCollection" = @{
"min_version" = 18363
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable telemetry")
}
"LimitEnhancedDiagnosticDataWindowsAnalytics" = @{
"min_version" = 16299
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable telemetry")
}
"DoNotShowFeedbackNotifications" = @{
"min_version" = 10240
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable telemetry")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" = @{
"AllowOnlineTips" = @{
"AllowOnlineTips" = @{
"min_version" = 16299
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @(
"disable retrieval of online tips and help in the immersive control panel"
)
}
"NoDriveTypeAutoRun" = @{
"value" = 255
"type" = "REG_DWORD"
"apply_if" = @("disable autoplay")
}
"NoAutorun" = @{
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable autoplay")
}
}
"HKEY_CURRENT_USER\SOFTWARE\Microsoft\input\Settings" = @{
"InsightsEnabled" = @{
Expand Down Expand Up @@ -537,6 +607,109 @@ $entries = @{
"apply_if" = @("disable automatic store app updates")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" = @{
"AllowClipboardHistory" = @{
"min_version" = 10240
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable clipboard history")
}
"AllowCrossDeviceClipboard" = @{
"min_version" = 10240
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable clipboard history")
}
"EnableActivityFeed" = @{
"min_version" = 10240
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable activity feed")
}
"PublishUserActivities" = @{
"min_version" = 10240
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable activity feed")
}
"UploadUserActivities" = @{
"min_version" = 10240
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable activity feed")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" = @{
"DisabledByGroupPolicy" = @{
"min_version" = 9600
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable advertising id")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer" = @{
"NoAutoplayfornonVolume" = @{
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable autoplay")
}
"DisableGraphRecentItems" = @{
"min_version" = 22621
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable account-based explorer features")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent" = @{
"DisableCloudOptimizedContent" = @{
"min_version" = 18363
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable cloud content")
}
"DisableConsumerAccountStateContent" = @{
"min_version" = 18363
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable cloud content")
}
"DisableSoftLanding" = @{
"min_version" = 10240
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable cloud content")
}
"DisableWindowsConsumerFeatures" = @{
"min_version" = 10240
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable cloud content")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" = @{
"DisableRegistration" = @{
"min_version" = 10240
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable autoplay")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PushToInstall" = @{
"DisablePushToInstall" = @{
"min_version" = 10240
"value" = 1
"type" = "REG_DWORD"
"apply_if" = @("disable microsoft store push to install feature")
}
}
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\TextInput" = @{
"AllowLinguisticDataCollection" = @{
"min_version" = 17134
"value" = 0
"type" = "REG_DWORD"
"apply_if" = @("disable sending inking and typing data to microsoft")
}
}
}

function Is-Admin() {
Expand Down
13 changes: 11 additions & 2 deletions bin/registry-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,20 @@
"disable widgets": true,
"disable customer experience improvement program": true,
"disable windows error reporting": true,
"disable search the web or display web results in search": true,
"disable telemetry": true,
"disable retrieval of online tips and help in the immersive control panel": true,
"disable typing insights": true,
"disable suggestions in the search box and in search home": true,
"disable computer is out of support message": true
"disable computer is out of support message": true,
"disable clipboard history": true,
"disable activity feed": true,
"disable advertising id": true,
"disable autoplay": true,
"disable cloud content": true,
"disable account-based explorer features": true,
"disable mdm enrollment": true,
"disable microsoft store push to install feature": true,
"mitigate web-based search info": true,
"disable sending inking and typing data to microsoft": true
}
}

0 comments on commit 6a7c07e

Please sign in to comment.