Wsus query needed - get WSUS-Computers, belonging WSUS-Group and Not Installed Count

Hi,
i try to find a way by using basic WSUS powershell cmds in combination with piping in Server 2012 R2 to get all registered computers in WSUS plus belonging WSUS-Group and Update "Not Installed Count" as output.
Is that possible?
I tried multiple times and enden up in using posh - is there no way based on standard powershell commandlets.
Thank you
Peter

Hi Michael,
it seems that you are right :(. I tried out a few things with powershell (source
http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/19/use-powershell-to-find-missing-updates-on-wsus-client-computers.aspx) - big problem is that i actually cant get belonging WSUS Group to Server object. I only are able to get all WSUS Groups
but cant find the right sytax to get only belonging ones.
Any ideas?
Thanks
Peter
#Load assemblies
[void][system.reflection.assembly]::LoadWithPartialName('Microsoft.UpdateServices.Administration')
#Create Scope objects
$computerscope = New-Object Microsoft.UpdateServices.Administration.ComputerTargetScope
$updatescope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
#Gather only servers
$ServersId = @($wsus.GetComputerTargets($computerscope) | Where {
$_.OSDescription -like "*Server*"
} | Select -expand Id)
#Get Update Summary
$wsus.GetSummariesPerComputerTarget($updatescope,$computerscope) | Where {
#Filter out non servers
$ServersId -Contains $_.ComputerTargetID
} | ForEach {
New-Object PSObject -Property @{
ComputerTarget = ($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).FullDomainName
ComputerTargetGroupIDs = ($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).ComputerTargetGroupIds
ComputerTargetGroupNames = ($wsus.GetComputerTargetGroups())
NeededCount = ($_.DownloadedCount + $_.NotInstalledCount)
#DownloadedCount = $_.DownloadedCount
NotInstalledCount = $_.NotInstalledCount
#InstalledCount = $_.InstalledCount

Similar Messages

  • I currently have iPhoto 8.1.2 on my macbook pro and am trying to update to the latest version.  I have had to work backward, but I can only get back to 9.1, which will not install because it says I need at least 9.0 to install it. Is 9.0 available?

    I currently have iPhoto 8.1.2 on my macbook pro and am trying to update to the latest version.  I have had to work backward, but I can only get back to 9.1, which will not install because it says I need at least 9.0 to install it. Is 9.0 available?  Will I need to go back even further?  Thanks

    Upgrading from iPhoto 8 to iPhoto 9 requires a purchase. There are two ways to get to iPhoto 9: 
    1 - purchase a copy of the iLife 11 disk from a 3rd party retailer like Amazon.com or eBay.com.
    2 - if your MBP meets the requirements upgrade you system for free to Mavericks.  Then you can purchase the latest iPhoto version, 9.5.1, from the App Store.
    OT

  • My iphone 4s automatically getting turned off (blank black screen) and not getting started until full battery discharge, after updating to ios 8.0.1

    My iphone 4s automatically getting turned off (blank black screen) and not getting started until full battery discharge. Even on long pressing power button - screen doesn't showing anything - not even "needs charging logo".
    This is happening only since I have updated to new ios version (ios 8.1).
    Is there anyone facing similar issue?? Any suggestion?!?

    Hi jayla_mora, 
    Thanks for visiting Apple Support Communities. 
    It sounds like your iPhone screen is going blank and not responding. 
    You may find the tips in this article useful for troubleshooting this behavior:
    iOS: Not responding or does not turn on - Apple Support
    Best Regards,
    Jeremy

  • My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    My calendar on my iPhone 4 erases all data over a month old except for recurring events.  How Do I get it to keep the info and not erase calendar events?

    Settings>Mail, Contacts, Calendars>Calendars>Sync>All Events.
    Note: If you're using a work Exchange account, the administrator my have restricted your options for this setting.

  • After downloading itunes get an error message saying itunes was not installed

    I am so frustrated because I had itunes on my laptop and after an update it wouldnt work. I have uninstalled itunes and downloaded the newest version but keep getting this message on screen 'Itunes was not installed correctly. Please re-install itunes. Error7(windows error 5) Has anybody got any ideas

    Can you browse the Time Machine drive from Finder?
    If you can and you know where the picture was stored ie on your desktop you can browse through the folder structure to the picture copy it and paste it somewhere on your new install before right clicking it and 'set as desktop background'

  • Does iDVD work with Maverick? This is the first time I tried to burn a DVD using iDVD after upgrading to Maverick. It seems to get stuck at encoding menu stage and not doing anything.

    I tried to burn a DVD using iDVD after upgrading to Maverick, first time I tried after upgrading to Maverick a few weeks ago. It seems to get stuck at encoding menu stage and not doing anything. Does anyone else have the same problem?

    I did not have a DVD handy to burn but I have just created a small 2 minute video and created a Disk Image and also a VIDEO_TS folder, the encoding worked correctly, so it works with some items.
    You may get a better responce in the iDVD forum.
    https://discussions.apple.com/community/ilife/idvd
    regards

  • How can I get my MacBook to stay on and not sleep when lid is closed?

    How can I get my MacBook to stay on and not sleep when lid is closed?

    try this: http://www.macupdate.com/app/mac/37991/nosleep

  • Just downloaded new verion of ITunes, now when I try to open ITunes get This copy is corrupted or is not installed correctly. Please reinstall ITunes. Running XP. I do not want to lose everything I already have on ITunes.Does anyone know what the solution

    Just downloaded new verion of ITunes, now when I try to open ITunes get This copy is corrupted or is not installed correctly. Please reinstall ITunes. Running XP. I do not want to lose everything I already have on ITunes.Does anyone know what the solution might be?

    Hi, oldcrow13.
    Thank you for the response.  Typically this error is caused by installing an older verison of iTunes than you had prior.  When you installed iTunes did you download the program directly from iTunes.com, or did you use an older copy of the program on your computer?  If you used an older version or are unsure, uninstall all the components one more time and download a new copy of iTunes via the link below. 
    iTunes for Windows
    http://www.apple.com/itunes/?cid=OAS-US-DOMAINS-itunes.com
    Jason H.

  • My LG G3 gets stuck in an "updating" loop and not load new emails. How do I fix this?

    My LG G3 gets stuck in an "updating" loop and not load new emails. How do I fix this?

    If you toggle Airplane mode On/Off, does it resolve?

  • I am using windows 7 starter,just downloaded itunes 10.5.2,while install getting prompt,cannot read ipodservice.exe,and after install itunes is not read iphone or ipod while plugging in through usb cable. Any ideas ,whats going wrong?

    I am using windows 7 starter,just downloaded itunes 10.5.2,while install getting prompt,cannot read ipodservice.exe,and after install itunes is not reading iphone or ipod while plugging in through usb cable. Any ideas ,whats going wrong?

    problem solved.
    I phone 4s screen froozen

  • My 3g is getting shut down on 40 percent and not turning on until plunged in

    my 3g is getting shut down on 40 percent and not turning on until plunged in

    Hi S,
    Did they have you try an SMC Reset: http://support.apple.com/kb/HT3964?

  • I downloaded IOS 6 and using the apps movies , books and I-store I get connected to the USA store and not to the Dutch one like before. So i cannot update my purchaged apps. How can I change this ?

    I downloaded IOS 6 and using the apps movies , books and I-store I get connected to the USA store and not to the Dutch one like before. So i cannot update my purchaged apps. How can I change this ?

    Have you looked on all the pages of your iPod?  Have you looked in all your folders?  Have you you tried finding the apps using the iPod's search page.
    PS: Offering points in advance is a violation of there terms of service for this forum.  Perhaps it's why you have not received any other answers so far,

  • Query to get a listing of all folders and joins in EUL

    If anybody has a query that provides a listing of all folders and joins between those folders in a Discoverer EUL, can you please share it.
    Any help would be greatly appreciated.

    Hi
    As Rod commented you won't get an accurate listing going through XREFS. You need to look in the statistics table, EUL5_QPP_STATS where you will find a history of all worksheets that have been executed. Unfortunately the item columns in EUL5_QPP_STATS are encoded so you will need some special SQL to uncode them.
    First of all you will need to have installed the EUL extensions which can be found in the script called EUL5.SQL (located in the Discoverer\Util folder where Admin is installed) when logged in as the owner of the EUL. Theh try running this script, altering the data switch to a suitable date:
    SELECT
    QS.QS_DOC_OWNER    USER_NAME,
    QS.QS_DOC_NAME     WORKBOOK,
    QS.QS_DOC_DETAILS  WORKSHEET,
    TRUNC(QS.QS_CREATED_DATE) EXECUTION_DATE,
    *(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 ITEMS,*
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),1,  6)) ITEM1,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),10, 6)) ITEM2,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),19, 6)) ITEM3,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),28, 6)) ITEM4,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),37, 6)) ITEM5,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),46, 6)) ITEM6,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),55, 6)) ITEM7,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),64, 6)) ITEM8,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),73, 6)) ITEM9,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),82, 6)) ITEM10,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),91, 6)) ITEM11,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),100,6)) ITEM12,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),109,6)) ITEM13,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),118,6)) ITEM14,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),127,6)) ITEM15,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),136,6)) ITEM16,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),145,6)) ITEM17,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),154,6)) ITEM18,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),163,6)) ITEM19,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),172,6)) ITEM20
    FROM
    EUL5_QPP_STATS QS
    WHERE
    *(LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 < 21*
    AND QS.QS_CREATED_DATE > '01-JAN-2009'
    Best wishes
    Michael

  • Query to get the customer's ship_to  Phone# and Fax#

    Gurus -
    Can anyone of you please help me in getting a query to shows the phoen and fax# of the Customer's ship_to Phone# and fax#
    customers--> on Address tab ( click open) On next screen click on contacts tabe for SHIP_TO row , there under the communications section, there are telephone and fax details , i want to get those details.
    Please help me in getting the query to get the fax and phone#.
    Infact I am using the below query and still having issues getting the correct fax# ( using teh same logic for phone#)
    select DISTINCT DECODE(PHONE_AREA_CODE,NULL,'',PHONE_AREA_CODE||'-')||PHONE_NUMBER
    FROM hz_cust_accounts_all hca,
    hz_parties hzp1,
    hz_cust_acct_sites_all hcas,
    hz_cust_site_uses_all hcsu,
    hz_relationships hzr,
    hz_org_contacts hoc,
    hz_contact_points hcp,
    hz_parties hzp,
    hz_cust_accounts_all hca1,
    hr_locations hrl
    WHERE 1 = 1
    AND hca.party_id = hzr.object_id
    AND hzr.relationship_id = hoc.party_relationship_id
    AND hoc.party_site_id = hcas.party_site_id
    AND hcas.cust_acct_site_id = hcsu.cust_acct_site_id
    AND hzr.party_id = hcp.owner_table_id
    --AND hcp.primary_flag = 'Y'
    AND hzr.subject_id = hzp.party_id
    AND hzp.party_id = hca1.party_id(+)
    AND hzp1.party_id(+) = hca.party_id
    AND hcsu.location = hrl.location_id(+)
    and hcsu.site_use_id = hsu.site_use_id
    AND hcp.OWNER_TABLE_NAME IN ('HZ_PARTIES')
    AND hcp.CONTACT_POINT_TYPE IN ('PHONE')
    AND hcp.PHONE_LINE_TYPE = 'FAX'
    AND hcp.STATUS = 'A'
    and nvl (hcsu.status, 'x') = 'A'
    AND hcsu.SITE_USE_CODE = 'SHIP_TO'
    --and hcsu.site_use_id = hsu.site_use_id
    -- and hcsu.cust_acct_site_id = hsu.cust_acct_site_id
    --and hca1.cust_account_id = hca.cust_account_id                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    What is the responsibility name? Form name and navigation path?
    You can determine the query from the form itself as follows:
    - Query the record(s)
    - Click on Help > Diagnostics > Examine
    - Under 'Block' field, select 'SYSTEM'
    - Under 'Field' field, select 'LAST_QUERY'
    You may also review the following note:
    Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=259722.1

  • HT1199 I updated Itunes on my PC and now when i try to open Itunes i get a error message saying "application failed to start because MSVCR80 was not found" then whenI close that pop up I get a error message saying "windows was not installed correctly Erro

    I updated my itunes the other day and now it won't open I get error message saying "application failed to start because MSVCR80 was not found"  When I close that window I get message stating Itunes was not installed correctly Error 7 Windows error 126.  My PC is a Acer and I'm running Windows Visa.  I tried to uninstall Itunes and reinstall it and get same message.  Can anyone help.

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99659)

Maybe you are looking for

  • Site lost activation out of nowhere - How do I find and enter the activation key through VPN?

    I had a message that site comms went down.  My clients sent somebody on-site and all is working but the OnPlus agent still shows comms down.  I VPN'd in and can get to the web page for the unit but it's asking me to activate it.  Is there a way to fi

  • Turnaround/Shutdown Process implementation using PS/PM modules

    We are a larger Size Fertilizer Industry, currently in the process of SAP Implementation. We carry out Annual Turnarounds each year for annual maintenance / overhauling of our equipment / machines. The total numbers of maintenance jobs are around 150

  • Customer statement email.

    Hi All,   I have requirement need to send customer statement as email. I am running it from f.27  and attached correspondense.   I would like send an email of customer statement. Any user exit to do the same? Can any one did the same please let me kn

  • CRM to R3 partner flow via CRM Middleware ...

    Hi all , Any one can tell me where the setting of the filter in standard has been done for the fields of the BUT000 which flows to ECC R3 in the middleware . Actually the requirement is to send some specific data of all the ship_tos which is created

  • Optimizing videos in IBA

    I have  video heavy iba, It has 10 videos which come out to around 1.98gb. I believe the AppleStore will pass book validations up to 2 gigs per book? I need to try to cut these videos down so for instance: Video 1 is an m4v converted from an .mov in