Question Is it possible to install Windows Updates with automatic restarts when needed using just PowerShell but without PSWindowsUpdate module ?

Status
Not open for further replies.
Dec 12, 2024
4
0
10
Hi,

I am trying to start using PowerShell for different purposes and my first project that I am trying to begin with is writing the script that allow me to execute Windows Updates automatically with the automatic restarts if needed using only the PowerShell as it is without installing any additional modules like PSWindowsUpdate.

Can anybody advice if it is technically possible?

I only have very basic knowledge about the PowerShell itself unfortunately.

So far I have been using it only for the very basic commands that probably everybody knows.

Thank you for any advice.
 
Google search:

"powershell auto updates"

Start here (selected at random) - not an endorsement or direct recommendation:

https://www.nakivo.com/blog/automate-windows-updates-using-powershell-short-overview/

https://medium.com/@pythonshield/automating-windows-updates-with-powershell-bfeacee5324f

There are other simliar links to be found.

Read and then revise the search criteria as necessary for your requirements.

Ensure that you try your cmdlets and scripts on a test system that is fully backed up for recovery purposes.
 
Google search:

"powershell auto updates"

Start here (selected at random) - not an endorsement or direct recommendation:

https://www.nakivo.com/blog/automate-windows-updates-using-powershell-short-overview/

https://medium.com/@pythonshield/automating-windows-updates-with-powershell-bfeacee5324f

There are other simliar links to be found.

Read and then revise the search criteria as necessary for your requirements.

Ensure that you try your cmdlets and scripts on a test system that is fully backed up for recovery purposes.
Hi,

Thank you for the answer, unfortunately this is the exact example why I have started a new thread on the forum.

When you google search the phrase "PowerShell auto updates" you can find a lot of results and links to the websites with the ready scripts etc. but the thing is that so far i have tried quite a few of them and I have not found even one so far without using PSWindowsUpdate module which I can't install and use with PowerShell due to company's policies so all these links are useless for me because they require installation of PSWindowsUpdate module.

This is why I am asking if it is technically possible to achieve this kind of automation regarding Windows Updates without usage of PSWindowsUpdate module.

It would be great to find out if that is possible.
 
This:

"have not found even one so far without using PSWindowsUpdate module which I can't install and use with PowerShell due to company's policies so all these links are useless for me because they require installation of PSWindowsUpdate module.

[My underline.]

If the computer is not your computer - i.e., the "companies" then you should not be attempting to install and use/do anything prohibited by company policies.

Doing so or even attempting to do so could cost you your job.

Plus, Forum rules prohibit assistance with hacks, workarounds, etc. that bypass privacy and security safeguards.

Closing thread to further posts.
 
Status
Not open for further replies.