functions/registry/Disable-WUAdvertisingId.ps1
<#
.DESCRIPTION This cmdlet works with registry. #> [CmdletBinding(SupportsShouldProcess)] param ( # Specifies the scope that is affected. The default scope is CurrentUser. [ValidateSet('LocalMachine', 'CurrentUser')] [string] $Scope = 'CurrentUser' ) Set-StrictMode -Version 'Latest' $registryHash = Get-WURegistryHash if (!$registryHash) { return } Set-WURegistryFromHash -RegistryHash $registryHash -Scope $Scope -DataKey $MyInvocation.MyCommand.Verb |