# Turn off advertising ID
Get-AppPrivacyPolicy -User "current" | ? { $_.PolicyAction -eq "BehavioralTracking" } | % { $_.Value = 0 } | Set-AppPrivacyPolicy -Verbose

# Turn off Windows Defender SmartScreen
Set-MpPreference -SmartScreenEnabled Off

# Turn off website access of the language list
Set-Culture -AllowAutoRedirect:$false

# Turn off location tracking
Get-Service -Name "lfsvc" | Set-Service -StartupType Disabled

# Disable Cortana
Get-AppxPackage -Name Microsoft.549981C3F5F10 | Remove-AppxPackage

# Use a local account instead of a Microsoft account
Set-LocalUser -Name "Username" -Password (ConvertTo-SecureString -AsPlainText "Password" -Force)

# Change app permissions
Get-AppxPackage | % { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppxManifest.xml" }

# Control and delete diagnostic data
Get-ChildItem -Path "HKLM:\SYSTEM\CurrentControlSet\Services\DiagTrack" | Set-ItemProperty -Name "Start" -Value 4
Get-Service -Name "DiagTrack" | Set-Service -StartupType Disabled

# Open Microsoft Privacy Dashboard in default browser
Start-Process "https://account.microsoft.com/privacy/activity-history"
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence