Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Updates via SSH #18

Closed
MaKaNu opened this issue Apr 5, 2024 · 2 comments
Closed

Running Updates via SSH #18

MaKaNu opened this issue Apr 5, 2024 · 2 comments

Comments

@MaKaNu
Copy link

MaKaNu commented Apr 5, 2024

I connected via SSH on my remote clients and tried to update the system. While Reading

Get-WUList

works, the installation of given update don't:

Get-WindowsUpdate -KBArticleID KB5034441 -Hide -Verbose

After questioned if I want to execute the upgrade the script fails with permission issues:

Get-WindowsUpdate : COM001: You don't have permission to perform this task.
In Zeile:1 Zeichen:1
+ Get-WindowsUpdate -KBArticleID KB5034441 -Hide -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-WindowsUpdate], Exception
    + FullyQualifiedErrorId : 0x80240044,PSWindowsUpdate.GetWindowsUpdate

Since the SSH Connection is estabilshed via admin-authorized keys I already thought I have elevated rights.

@mgajda83
Copy link
Owner

mgajda83 commented Apr 5, 2024

This is a limitation of the Windows Update API itself. It must be run locally. Any remote session will return error.

@MaKaNu
Copy link
Author

MaKaNu commented Apr 6, 2024

Wow, the windows world is similar restrictive as Apple as it comes to maintenance. I have a few hundred system to maintain, all different and my recent approach via ansible was only partial successful. Either somebody takes huge bite out of their budget or we should switch to a more maintainable system. Sorry for the rant but I had to write it down.

@MaKaNu MaKaNu closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants