It does require the module is installed on the remote system. I make the module part of the VM templates / system images. For updates, since the module is just a few files, you can use whatever method you have to copy files around. That can be copy-item to "\\servername\C$\Program Files\WindowsPowerShell\Modules\PSWindowsUpdate\2.2.0.2" or zip it up any use SCCM or similar products to deploy the files.
I believe using Enter-PSSession will give you an interactive-ish session with full admin rights on a remote system. I say -ish because you still need to use the -ScheduleJob parameter to install updates. I have yet to try enabling SSH and trying it that way.
"OK - that makes no sense, though I think I understand it. I'll go read up on that."
Basically, that was my reaction and went with it. Life is too short to try to make sense of every part of an OS, let alone Windows.
-Matt
> + ~
> + CategoryInfo : PermissionDenied: (:) [Get-WindowsUpdate], Exception
> + FullyQualifiedErrorId :
> AccessDenied,PSWindowsUpdate.GetWindowsUpdate
>
> I also have an elevated PowerShell session with my DA credentials, and out of frustration tried the cmdlet there, just to see what would happen. It was even less successful:
>
> PS C:\Temp> get-windowsupdate -ComputerName <server> -AcceptAll
> -AutoReboot -Verbose get-windowsupdate : gfcaadconnect: Access denied. You don't have permission to perform this task.
> At line:1 char:1
> + get-windowsupdate -ComputerName gfcaadconnect -AcceptAll -AutoReboot ...
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + ~
> + CategoryInfo : PermissionDenied: (:) [Get-WindowsUpdate], Exception
> + FullyQualifiedErrorId :
> 80070005,PSWindowsUpdate.GetWindowsUpdate
>
> --
> You received this message because you are subscribed to the Google Groups "ntpowershell" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ntpowershell...@googlegroups.com.
> To view this discussion on the web visit
https://urldefense.com/v3/__https://groups.google.com/d/msgid/ntpowershell/CADy1Ce4*3D61zQ8BOt3FNMKB8D7ZuZviK5h4LVicFVHqLxTWWbjg*40mail.gmail.com__;JSU!!Dq0X2DkFhyF93HkjWTBQKhk!HfmOIBpb-I3jrnCiM-sOYfHt0vogOGp1SKHa99GipuBgaB687G7Wo7JgAkTtnoT98m5R$ .
>
> --
> You received this message because you are subscribed to the Google Groups "ntpowershell" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ntpowershell...@googlegroups.com.
> To view this discussion on the web visit
https://urldefense.com/v3/__https://groups.google.com/d/msgid/ntpowershell/DM6PR05MB6538C593B2D089729184297EBF400*40DM6PR05MB6538.namprd05.prod.outlook.com__;JQ!!Dq0X2DkFhyF93HkjWTBQKhk!HfmOIBpb-I3jrnCiM-sOYfHt0vogOGp1SKHa99GipuBgaB687G7Wo7JgAkTtnu9ohaPh$ .
--
You received this message because you are subscribed to the Google Groups "ntpowershell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntpowershell...@googlegroups.com.
To view this discussion on the web visit
https://urldefense.com/v3/__https://groups.google.com/d/msgid/ntpowershell/CADy1Ce4HM*2B_gjAtjJRvkWKyUm69rEDZ94SHJovNn1LL-pCg_vA*40mail.gmail.com__;JSU!!Dq0X2DkFhyF93HkjWTBQKhk!HfmOIBpb-I3jrnCiM-sOYfHt0vogOGp1SKHa99GipuBgaB687G7Wo7JgAkTtnoIgGI4W$ .