mgajda83 / PSWindowsUpdate

This module contain cmdlets to manage Windows Update Client.
MIT License
253 stars 24 forks source link

Cannot remove UseWUServer with Set-WUSettings #16

Open ThePlenkov opened 4 months ago

ThePlenkov commented 4 months ago

Hi!

I'm able to enable WU server use, but cannot understand how to clear it back.

Set-WUSettings -UseWUServer

Confirm
Are you sure you want to perform this action?
Performing the operation "(12/03/2024 19:21:48) Set Windows Update settings" on target "XXXXXXX".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y

ComputerName UseWUServer
------------ -----------
XXXXXXX           True
Set-WUSettings -UseWUServer False
Set-WUSettings: A positional parameter cannot be found that accepts argument 'False'.
Set-WUSettings -UseWUServer 0
Set-WUSettings: A positional parameter cannot be found that accepts argument '0'.
Set-WUSettings -UseWUServer ''
Set-WUSettings: A positional parameter cannot be found that accepts argument ''.

Could you please advise how to use this script? Thanks!