Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

WSUS Reporting per group (GUID)

$
0
0

Hello Friends,

I am using this script for WSUS reporting (cannot post links or images so please copy paste into browser to see script code: http://get-mailbox.net/get-wsusreport )

I tweak the UpdateScopeper Boe's post, however, this script uses GetComputerTargetGroups(), which needs a GUID from WSUS groups. I have 47 groups in WSUS and am trying to use this script to:

  1. Send me report for 'specific' WSUS groups (dont want my audience to see all groups).
  2. Sort the report per group and alphabetically.

So far I have tried to add multiple GUIDs with '-and', '-or' in 'where' statement but is not working (code shown below).  The second hurdle of reporting per GUID or WSUS GROUP seems more challenging to my novice self.

Any help is much appreciated :)

#########################

$ComputerTargetGroups = $WSUS.GetComputerTargetGroups() | Where {
($_.id -eq 'cedb80f2-a30e-4f0d-82c8-008a8859069f') -and
($_.id -eq 'e97d34eb-848f-4d23-9709-08489e355b36')

}

#########################

http://get-mailbox.net/get-wsusreport


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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