r/PowerShell • u/Outrageous_Use_907 • Mar 30 '26
Question Help scripting Windows Updates
I have already searched for my question in this sub but everything is just kind of related to my question. As the title says, i need help scripting windows updates. I stumbled upon PSWindowsUpdate but i am not allowed to use it as it is packed in a dll and my boss only allows open modules that we can review. I am working on a setup script for new windows installations and i want to automate the process. The other stuff i figured out how to do as it is very simple like install a program or delete an appxpackage etc.
So i thought why not building my own open windows update module. But i really don't know where to start and how to even do this as i am not a pro in powershell. I enjoy using it and automating but i have no idea on how to do such a thing. Any ideas, information, help or links to other projects like this are very appreciated! Thanks!
Edit: thank you all for your input, that's exactly what i was looking for! I'm gonna start researching your recommendations and hopefully i can give you an update soon!
View all comments
Show parent comment
3
u/hihcadore Mar 31 '26
Are you imaging the device?
Or you touch it and want to do the needful and just one off update it before you pass it back to the customer?