If ((Get-PolicyFileEntry -ValueName "DisableDualScan" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "DisableDualScan") { Remove-PolicyFileEntry -ValueName "DisableDualScan" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "WUServer" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "WUServer") { Remove-PolicyFileEntry -ValueName "WUServer" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "WUStatusServer" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "WUStatusServer") { Remove-PolicyFileEntry -ValueName "WUStatusServer" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "UseWUServer" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate\AU" -Path $MachineDir).ValueName -eq "UseWUServer") { Remove-PolicyFileEntry -ValueName "UseWUServer" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate\AU" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "SetProxyBehaviorForUpdateDetection" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "SetProxyBehaviorForUpdateDetection") { Remove-PolicyFileEntry -ValueName "SetProxyBehaviorForUpdateDetection" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "UpdateServiceUrlAlternate" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "UpdateServiceUrlAlternate") { Remove-PolicyFileEntry -ValueName "UpdateServiceUrlAlternate" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "DoNotEnforceEnterpriseTLSCertPinningForUpdateDetection" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "DoNotEnforceEnterpriseTLSCertPinningForUpdateDetection") { Remove-PolicyFileEntry -ValueName "DoNotEnforceEnterpriseTLSCertPinningForUpdateDetection" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "FillEmptyContentUrls" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "FillEmptyContentUrls") { Remove-PolicyFileEntry -ValueName "FillEmptyContentUrls" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "**del.DoNotEnforceEnterpriseTLSCertPinningForUpdateDetection" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "**del.DoNotEnforceEnterpriseTLSCertPinningForUpdateDetection") { Remove-PolicyFileEntry -ValueName "**del.DoNotEnforceEnterpriseTLSCertPinningForUpdateDetection" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir } If ((Get-PolicyFileEntry -ValueName "**del.FillEmptyContentUrls" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir).ValueName -eq "**del.FillEmptyContentUrls") { Remove-PolicyFileEntry -ValueName "**del.FillEmptyContentUrls" -Key "Software\Policies\Microsoft\Windows\WindowsUpdate" -Path $MachineDir }