Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell WSUS question

$
0
0

I have a question regarding the "Approve-WsusUpdate" command.

I have accidentally approved a ton of updates in WSUS and I want to get them back to the default of "NotApproved." I want to do this because I have SCCM managing my updates, and WSUS shouldn't even be opened other than the installation...and I opened it and approved all these updates...

On this TechNetI found that I can approve an update like this:

Powershell
Get-WsusUpdate-UpdateIdafe0b83c-25c5-4f5b92ee-66e76194df51|Approve-WsusUpdate-ActionNotApproved-TargetGroupName'All Computers'

The output comes out with an error. I tried the command all sorts of ways. I even denied the update and tried it that way, but still no. It doesn't seem to like it. I will attach a picture of multiple commands and their errors.

Here is better res:
...

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>