[...]
PS> get-help Invoke-WUJob
[...]
DESCRIPTION
Use Invoke-WUJobs cmdlet to invoke PSWindowsUpdate actions remot[e]ly.
It [is] [b]ased on TaskScheduler because CreateUpdateDownloader() and
CreateUpdateInstaller() methods can't be called from a remote computer - E_ACCESSDENIED.
Note: Because we do not have the ability to interact, is recommended use -AcceptAll for Install-WindowsUpdate.
Will it work with Get-WindowsUpdate?
PS> invoke-WUJob -Script { Get-WindowsUpdate -Verbose -RootCategories 'Critical Updates', 'Security Updates', 'Definition Updates' } -Verbose -RunNow -Confirm:$false
VERBOSE: Performing the operation "(7/1/2024 10:16:29 PM) Invoke WU job: powershell.exe -Command " Get-WindowsUpdate -Verbose -RootCategories 'Critical Updates', 'Security Updates', 'Definition Updates' "" on target "PC".
VERBOSE: Try to connect PC. Test 1
VERBOSE: Try to connect PC. Test 2
VERBOSE: Try to connect PC. Test 3
VERBOSE: Registering task: PSWindowsUpdate
VERBOSE: Starting task: PSWindowsUpdate
So far so good.
Happy again.
Not happy.
Will it work with Get-WindowsUpdate?
No output.
Is "Invoke-WUJob" limited to installations?