Help Powershell and Wsus Approve Updates By Computer Group

I've found this script to ApproveUpdatesByComputerGroupt and it works, my problem is now, I only need to approve Classification Critical, because I will not approve service packs for OS / SQL, etc. 
I'm using SCCM, but Failover Cluster should I use WSUS, and my support team is already running a script, to set maintenance mode. 
But no matter what I've tried, I can not really get it to work, so .. 
Help Help
# ApproveUpdatesByComputerGroup.ps1
[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer()
$ComputerTargetGroups = $wsus.GetComputerTargetGroups()
Write-Host "Warning: This will approve all NotApproved updates for a Computer Group" -ForegroundColor Red
Write-Host "Computer Groups"
$Count = 0
foreach ($ComputerTargetGroup in $ComputerTargetGroups) {
    Write-Host $Count - $ComputerTargetGroup.Name
    $Count++
$ComputerGroupToUpdate = Read-Host "Select Computer Group to update. [0 - $($Count-1)]"
Write-Host "Finding all updates needing approval and approving them"
$ComputerGroupName = $ComputerTargetGroups[$ComputerGroupToUpdate].Name
$ComputerGroupId = $ComputerTargetGroups[$ComputerGroupToUpdate].Id
$ComputersToScan = $wsus.GetComputerTargetGroup($ComputerGroupId).GetComputerTargets()
foreach ($ComputerToScan in $ComputersToScan) {
    $ComputerTargetToUpdate = $wsus.GetComputerTargetByName($ComputerToScan.FullDomainName)
    # Get all Not Installed updates available to the computer
    $NeededAndNotInstalled = $ComputerTargetToUpdate.GetUpdateInstallationInfoPerUpdate() | where {
                          ($_.UpdateInstallationState -eq "NotInstalled") `
                          -and ($_.UpdateApprovalAction -eq "NotApproved")}
    foreach ($UpdateToApprove in $NeededAndNotInstalled)
        Approve-WsusUpdate -Action Install -TargetGroupName $ComputerGroupName -Update $(Get-WsusUpdate -UpdateId $UpdateToApprove.UpdateId) -Verbose
Write-Host "Done approving updates"
sleep -Seconds 5

This is what you are looking for:
http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/22/use-the-free-poshwsus-powershell-module-for-wsus-administrative-work.aspx
¯\_(ツ)_/¯

Similar Messages

  • I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. I anyone able to give me a hint how to handle it? Thank you ind advance Karl

    I bought a cd with Lightroom 5. After installation and registration I am not able to use 'help' function and I cannot update the software. Is anyone able to give me a hint how to handle it?
    Thank you in advance
    arl

    Hi Keith, sorry for my late reply.
    Surely I am able to connect to the help function when Icontact the website
    of AdobeLR5.The problem is as follows,
    When I open LR5 on my computer and work with it and try to open the help
    function in the software, I don't get it.
    When I bought the CD I was naiv enough to believe that I get an independent
    working software. I learned in the meantime, that the seller does not allow
    to work with, without being connected to them.
    I don't believe that I am paranoid, but I like to buy something and use it
    without to inform the supplier that I do it. Otherwise I could have bought
    the license fpr LR5 via internet.
    Best regards
    Karl
    2015-01-02 13:42 GMT+01:00 kglad <[email protected]>:
        I bought a cd with Lightroom 5. After installation and registration I
    am not able to use 'help' function and I cannot update the software. I
    anyone able to give me a hint how to handle it? Thank you ind advance Karl
    kglad <https://forums.adobe.com/people/kglad?et=watches.email.outcome>
    marked Keith_Reeder
    <https://forums.adobe.com/people/Keith_Reeder?et=watches.email.outcome>'s
    reply on I bought a cd with Lightroom 5. After installation and
    registration I am not able to use 'help' function and I cannot update the
    software. I anyone able to give me a hint how to handle it? Thank you ind
    advance Karl
    <https://forums.adobe.com/thread/1669640?et=watches.email.outcome> as
    helpful. View the full reply
    <https://forums.adobe.com/message/7059196?et=watches.email.outcome#7059196>

  • I have a iMac and i just updated the computer to Yosemite.  I have Photoshop CS5 and when I try to print under print size --- manage custom size , photoshop unexpectedly quits every time.  I updated the printer drivers (epson 9880)  uninstalled and instal

    I have a iMac and i just updated the computer to Yosemite.  I have Photoshop CS5 and when I try to print under print size --- manage custom size , photoshop unexpectedly quits every time.  I updated the printer drivers (epson 9880)  uninstalled and installed all the drivers. restarted computer and it is still doing the same thing.  Cant find any costumer service here either except forums.

    I have exactly the same problem - Whenever I go to Print, the print widow appears, it thinks about it for a bit (rotating symbol) and then quits.
    This is the beginning of the problem details, cut and paste. It goes on much longer than this:
    Process:               Adobe Photoshop CS5 [786]
    Path:                  /Applications/Adobe Photoshop CS5/Adobe Photoshop CS5.app/Contents/MacOS/Adobe Photoshop CS5
    Identifier:            com.adobe.Photoshop
    Version:               12.0 (12.0x20100407.r.1103] [12.0)
    Code Type:             X86-64 (Native)
    Parent Process:        ??? [1]
    Responsible:           Adobe Photoshop CS5 [786]
    User ID:               502
    Date/Time:             2015-02-01 10:56:19.422 +0000
    OS Version:            Mac OS X 10.10.2 (14C109)
    Report Version:        11
    Anonymous UUID:        C0191A3D-714A-8117-8061-9291955759D1
    Sleep/Wake UUID:       B201F1B6-486D-4D70-B99A-E4F89B024BBF
    Time Awake Since Boot: 5600 seconds
    Time Since Wake:       240 seconds
    Crashed Thread:        0  Dispatch queue: com.apple.main-thread
    Exception Type:        EXC_BAD_ACCESS (SIGBUS)
    Exception Codes:       KERN_PROTECTION_FAILURE at 0x00007fff789d1e70
    VM Regions Near 0x7fff789d1e70:
        __DATA                 00007fff78986000-00007fff7898b000 [   20K] rw-/rwx SM=COW  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Ve rsions/A/libLAPACK.dylib
    --> __DATA                 00007fff7898b000-00007fff789e1000 [  344K] rw-/rwx SM=COW  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        __DATA                 00007fff789e1000-00007fff789e6000 [   20K] rw-/rwx SM=COW  /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   ???                           0x00007fff789d1e70 OBJC_CLASS_$_NSMutableArray + 0
    1   com.apple.print.framework.PrintCore 0x00007fff95693021 PMRelease + 43
    2   com.adobe.Photoshop           0x0000000100c237cf AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 9727123
    3   com.adobe.Photoshop           0x0000000100c23e7d AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 9728833
    4   com.adobe.Photoshop           0x0000000100c23eb7 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 9728891
    5   com.adobe.Photoshop           0x0000000100c23da5 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 9728617
    6   com.adobe.Photoshop           0x0000000100aee053 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 8459543
    7   com.adobe.Photoshop           0x0000000100768c64 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 4768040
    8   com.adobe.Photoshop           0x0000000100af067e AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 8469314
    9   com.adobe.Photoshop           0x0000000100af0be9 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 8470701
    10  com.adobe.Photoshop           0x0000000100af1295 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 8472409
    11  com.adobe.Photoshop           0x000000010007bbdc 0x100000000 + 506844
    12  com.adobe.Photoshop           0x00000001000d6a7e 0x100000000 + 879230
    13  com.adobe.Photoshop           0x00000001000d6a9e 0x100000000 + 879262
    14  com.adobe.Photoshop           0x0000000100066eb1 0x100000000 + 421553
    15  com.adobe.Photoshop           0x0000000100071d74 0x100000000 + 466292
    16  com.adobe.Photoshop           0x000000010006716f 0x100000000 + 422255
    17  com.adobe.Photoshop           0x0000000100067232 0x100000000 + 422450
    18  com.adobe.Photoshop           0x00000001012f0007 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16856267
    19  com.apple.AppKit               0x00007fff8d77c608 -[NSApplication run] + 711
    20  com.adobe.Photoshop           0x00000001012ee19c AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16848480
    21  com.adobe.Photoshop           0x00000001012ef3c7 AWS_CUI_GetVersionComments(OpaqueWindowPtr*, adobe::q::QDocument&, adobe::q::QString&, adobe::q::QAttributeList&, adobe::q::QDocument*, adobe::q::QProject*, long) + 16853131
    22  com.adobe.Photoshop           0x0000000100068e82 0x100000000 + 429698
    23  com.adobe.Photoshop           0x0000000100238308 0x100000000 + 2327304
    24  com.adobe.Photoshop           0x00000001002383a7 0x100000000 + 2327463

  • WSUS - Approving Updates For Group Of Computers

    It's a pretty straightforward process: Step 4: Approve and Deploy WSUS Updates
    When you approve the updates, you choose which group. After my test group has run with the updates for a few days with no problems, I just approve for all computers.

    First of all...I'm new to WSUS.  My question...if you have a computer group for Test computers and approve a list of updates for them, is there an easy way to approve the same group of updates for another group of computers once the updates have been tested?  
    I have a GPO setup that I will apply to all computers and I have a GPO just for IT computers that I will use to test updates.  Is that the correct way to do it? 
    This topic first appeared in the Spiceworks Community

  • Systems Center and WSUS - Deploying updates

    Hi
    I'm having a bit of a nightmare trying to get a client to update from Systems Center when using WSUS.
    I've installed and downloaded on Systems Center the necessary updates etc but the test PC had difficulty downloading the updates. 
    Upon research I had put in the group policy the name and port of the server in the "Specify intranet Microsoft Update service location" but apparently this was wrong as it uses the configuration manager and software update point, so the group policy
    intranet entry is now disabled.
    The PC then updated and I thought that it was working.   However upon looking further, I believe that all that is happening is the PC is going direct out to the internet for the updates instead!   There is no status change in the configuration
    management console (in Deployments it is saying Unknown) and there were far more updates being applied than I'd configured in the Software Update Group.
    My sanity is close to breaking as this seems far more complex than it should be.   
    What should I have in the Group Policy?   What logs are most useful in helping me figure out what I'm doing wrong?
    Thanks for any help.

    The only thing that is essential is that you should not have a GPO pointing to a previous WSUS server. If this is in place then ConfigMgr will ignore all updates deployments. It is best practise to implement a GPO to actually disable automatic updates (although
    this is not mandatory).
    The following logs will give you a complete understanding of what is happening on a client:
    UpdatesDeployment.log
    UpdatesHandler.log
    WUAHandler.log
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • Photoshop will not let me edit raw pics from my newer nikon camera. No problems with my older canon. Went into the help tab and went to updates. There were two there but the both have an error when downloading. I click on support to find out more and says

    help

    You might need to speak with support, to find out if your newer Nikon is supported by ACR: Adobe Connect Chat Support

  • How to export and import "Computer Groups" and "Patch approvals" in WSUS 4.0 ?

    Hi,
    I have a query regarding the export and import options for "Computer Groups" and "Patch Approvals" in WSUS 4.0.
    In WSUS 3.2 once we install WSUS 3.0 API Samples and Tools, we get "WSUSMigrationExport" and "WSUSMigrationImport" tools under
    C:\Program Files\Update Services 3.0 API Samples and Tools\WsusMigrate\ folder. 
    Using the 'WSUSMigrationExport' tool we can export the Computer Groups and the Patch Approvals in a XML file. And using the 'WSUSMigrationImport' tool we can import the 'Computer Groups' and the 'Patch Approvals' from that XML file into a different WSUS
    3.2 server. We can run the import tool as below:
    a. Run command prompt as administrator.
    b. In the command prompt, go to C:\Program Files (x86)\Update Services 3.0 API Samples ans Tools\ WsusMigrate\WsusMigrationImport
    c. Type WsusMigrationImport filename.xml TargetGroups None. Press enter; this will import Computer Groups to the WSUS 3.2 server.
       Type WsusMigrationImport filename.xml Approvals None. Press enter; this will import "Patch Approvals" to the WSUS 3.2 server.
    This is easy and useful.
    Now, for WSUS 4.0 I did not find  "WSUS
    4.0 API Samples and Tools". So I installed "WSUS 3.0 API Samples and Tools" in my WSUS 4.0 server. And tried to import a valid XML file in the above mentioned process. But the command returned an error.
    The error says the "Microsoft.UpdateService.Administration.dll" file was not found.
    I further searched in the internet about this issue and I found that the "WSUS 3.0 API Samples and Tools" is not supported in WSUS 4.0 as the .net framework used in "WSUS 3.0 API Samples and Tools" is 2.0 and WSUS 4.0 uses .net Framework
    4.5.
    So, Here are my questions.
    1. Is it correct that "WSUS 3.0 API Samples and Tools" is not supported in WSUS 4.0?
    2. Is "WSUS 4.0 API Samples and Tools" available?
    3. Is there any alternative way in WSUS 4.0 to export and import XML file consisting "Computer Groups" and "Patch Approvals" configurations?
    I need an urgent reply. Thank you in advance.

    Hi Tapojyoti,
    >>1. Is it correct that "WSUS 3.0 API Samples and Tools" is not supported in WSUS 4.0?
    Yes, WSUS 3.0 API Samples and Tools is not supported in Windows Server 2012R2 by default. We may try to rebuild it in Windows Server 2012R2. For detailed information about how the rebuiled, please refer to the readme document of the WSUS 3.0 API Samples
    and Tools.
    >>2. Is "WSUS 4.0 API Samples and Tools" available?
    No, I can't find the WSUS API Samples and Tools for 2012R2.
    >>3. Is there any alternative way in WSUS 4.0 to export and import XML file consisting "Computer Groups" and "Patch Approvals" configurations?
    As I have mentioned above, due to WSUS 3.0 API Samples and Tools is released with source code, we can try to rebuild it in the Windows Server 2012R2.
    If it doesn't work, as a workaround, we can configure the new WSUS server as the replica server of the existing WSUS server. After the synchronization, change the server mode to stand alone.
    Best Regards.
    Steven Lee
    TechNet Community Support

  • Export and Import Computer Groups

    Two Monday mornings in a row the Open Directory on our Intel-based Xserve's Mac OS X 10.5.7 Server had failed. This would mean that users who were supposed to have specific access right to folders and share points on other Xserve file servers couldn't get their files or had full access instead of restricted access. The first Monday a restart resolved the issue. The second Monday a restart did not resolve the issue and we opened a case with AppleCare Enterprise Support. We got it up and running again but it failed on Friday during the day. Another call the AppleCare Enterprise Support had me export all my users, user groups, computers and computer groups as a backup.
    In the end, I had to do an erase and install of Mac OS X 10.5 server and I updated right to 10.5.8. AppleCare pointed me to the (now Snow Leopard) documentation and told me that now that the server was running and nothing was "broken" and they could not continue to support me. It was up to me to figure out how to restore everything from the documentation. Unfortunately, that document has NOTHING in it about restoring computers or computer groups. It only documents users and user groups. Our user groups were restored with the import of the previously exported list. However, all of the computers in our computer groups appear in the membership list as "Not Found". The preferences/settings for the group were restored but are not being applied to any computers. This means that portable users probably no longer have "mobile" accounts so they can log in off the network and now the Software Update is wide open (although most users are not administrators).
    Is there some trick I'm missing to get the computers back into their groups automatically? I can add them manually but I have 400 and can't tell from the list of workstation numbers which are laptops and which are desktops.
    -Doug

    Hi Tapojyoti,
    >>1. Is it correct that "WSUS 3.0 API Samples and Tools" is not supported in WSUS 4.0?
    Yes, WSUS 3.0 API Samples and Tools is not supported in Windows Server 2012R2 by default. We may try to rebuild it in Windows Server 2012R2. For detailed information about how the rebuiled, please refer to the readme document of the WSUS 3.0 API Samples
    and Tools.
    >>2. Is "WSUS 4.0 API Samples and Tools" available?
    No, I can't find the WSUS API Samples and Tools for 2012R2.
    >>3. Is there any alternative way in WSUS 4.0 to export and import XML file consisting "Computer Groups" and "Patch Approvals" configurations?
    As I have mentioned above, due to WSUS 3.0 API Samples and Tools is released with source code, we can try to rebuild it in the Windows Server 2012R2.
    If it doesn't work, as a workaround, we can configure the new WSUS server as the replica server of the existing WSUS server. After the synchronization, change the server mode to stand alone.
    Best Regards.
    Steven Lee
    TechNet Community Support

  • SCCM 2012 Reporting Code Returns Same Value For Total Number Of Required Updates Per Computer

    I'm trying to make a custom report in SCCM 2012 R2 with SQL 2012 since Microsoft took out the ability to list the number of updates needed per computer. This was in WSUS reporting but is not in SCCM reporting. I've made a custom report for this but can't
    quite get it to work. The report runs but the same value for total number of updates needed shows up for every computer. I took a query from one report and am trying to get it to run inside the select statement from another report. Here is the code as it is
    right now:
    declare @CI_ID int; select @CI_ID=CI_ID from fn_rbac_ConfigurationItems(@UserSIDs)  where CIType_ID=9 and CI_UniqueID=@AuthListID
              declare @StateID int
              select @StateID=StateID from fn_rbac_StateNames(@UserSIDs)  sn where sn.StateName=@StateName and TopicType=300
              declare @RequiredUpdateCount int
              select @RequiredUpdateCount=Count(v_StateNames.Statename) from   
    v_StateNames,   
    v_Update_ComplianceStatusAll   
    Inner Join v_R_System On (v_R_System.ResourceID = v_Update_ComplianceStatusAll.ResourceID)   
    Inner Join v_UpdateInfo On (v_UpdateInfo.CI_ID = v_Update_ComplianceStatusAll.CI_ID)   
    where   
    v_StateNames.TopicType = 500 and   
    v_StateNames.StateID = v_Update_ComplianceStatusAll.Status and   
    v_StateNames.Statename = 'Update is required'   
    Group By v_R_System.Name0
              select
                ccm.ResourceID,
                rs.Name0+isnull('.'+rs.Resource_Domain_or_Workgr0, '') as MachineName,
                rs.User_Domain0+'\'+User_Name0 as LastLoggedOnUser,
                asite.SMS_Assigned_Sites0 as AssignedSite,
                rs.Client_Version0 as ClientVersion,
    @RequiredUpdateCount as RequiredUpdates  
              from fn_rbac_ClientCollectionMembers(@UserSIDs)  ccm
              join fn_rbac_Update_ComplianceStatusAll(@UserSIDs)  cs on cs.CI_ID=@CI_ID and cs.ResourceID=ccm.ResourceID
                and (@StateID=0 and cs.Status=0 or @StateID=1 and cs.Status in (1,3) or @StateID=2 and cs.Status=2)
              join fn_rbac_R_System(@UserSIDs)  rs on rs.ResourceID = ccm.ResourceID
              left join fn_rbac_RA_System_SMSAssignedSites(@UserSIDs)  asite on asite.ResourceID = ccm.ResourceID
              where ccm.CollectionID=@CollID
              order by MachineName
    Ben JohnsonWY

    There's plenty wrong with it. It gives you no idea of how many patches each box needs. Then you have to click on each computer, click the sort arrow by the "required" column, and count the number needed. When you have hundreds of computers to work on this
    is a big deal as it's very time consuming. What's great about the view in WSUS that had this is that it listed this for you and you could sort the required column. So if have most computers needing 2 patches, you can go find the one that needs 40 and 150 (to
    over exaggerate) and put the time on them needed to see why they're so far behind. The WSUS format was quick, easy, and informative. SCCM makes getting this info a royal PITA which is why I'm (and many others) so royally peeved at MicroShaft for removing this
    functionality, but that's what we've all come to expect from MicroShaft--just like when then took the nice colorful themes out of Office 2010 and replaced them in Office 2013 with just white, gray, and a darker gray. That's super boring and actually hurts
    my eyes.
    Ben JohnsonWY

  • When I try to finalize my Imovie11 project it just errors out.  I have finalized other movies without incident and it will save the trailer. I've emptied trash and run all updates and there isn't a specific error code popping up.

    When I try to finalize my Imovie 11 project it errors out.  I have made several movies and never had this problem.  I have emptied trash, and installed all updates to computer.  It will finalize the shorter, trailer but not the project itself.  It is not, by far, the largest project I've ever done. I am not getting a specific error code. 

    When I try to finalize my Imovie 11 project it errors out.  I have made several movies and never had this problem.  I have emptied trash, and installed all updates to computer.  It will finalize the shorter, trailer but not the project itself.  It is not, by far, the largest project I've ever done. I am not getting a specific error code. 

  • Broken CD Rom drive and can't update

    I have a Macbook Pro and I cannot update my computer. My biggest problem is that I cannot use my CD Rom drive to reload the old software. I need to know another way to get my computer updated so I can use my Itunes. What can I do?

    1) Yes, you can replace the CD/DVD drive
    2) Its not very tricky to remove the CD/DVD drive from the notebook. Its secured with one screw at the bottom of the unit. Remove the screw securing the optical drive module and use your hand to push the module and then you can slide the module from the bay
    3) You will have to buy an compatible CD/DVD drive. The compatible drive could be ordered from your local Toshiba ASP

  • Approving WSUS updates for one computer group at a time

    We have a WSUS server, and four computer groups (Alpha, Beta, Production, Workstations). Our patching process has us approve all "Not Approved" patches for the Alpha group, right after they're released by Microsoft. One week later, we approve all
    of the updates from the previous week, for the Beta group. One week later, we do the same for Production. 
    I'm writing a script (which I can't test until next week), and wonder if there's a better way to get the list of updates that are approved for Alpha. Here is the code: 
    $updateScope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
    $updateScope.ApprovedStates = [Microsoft.UpdateServices.Administration.ApprovedStates]::LatestRevisionApproved
    $updateScope.FromArrivalDAte = (Get-Date).AddMonths(-1)
    $wsusGroup = $wsus.GetComputerTargetGroups() | Where {$_.Name -eq "$PatchingGroup"}
    $updateScope
    $updateScope.getType()
    $updateScope.count
    $updateScope.ApprovedComputerTargetGroups.add($wsusGroup)
    $wsus.GetUpdates($updateScope)
    $Updates = $wsus.GetUpdates($updateScope)
    I assume I can take the $Updates variable and do the following for the Beta and Production groups: 
    Foreach ($update in $updates) {
    $update.Approve(“Install”,$PatchingGroup)
    Is this going to work, and is there a better way?

    For WSUS Scripts see this: http://poshwsus.codeplex.com/
    ¯\_(ツ)_/¯

  • I recently updated my iPhone to IOS 8 and it said I need the latest version of iTunes to sync and back up however my computer won't allow it what do I do !??  Anything helps!!!

    I recently updated my iPhone to IOS 8 and it said I need the latest version of iTunes to sync and back up however my computer won't allow it what do I do !??  Anything helps!!!

    If it's in recovery mode, the data is already gone. Why did you never back up your important data?

  • I need to update my phone and install Itunes to my computer, but every time I try, it will not let me. I have tried everything on the internet and nothing is working. Every time I try to download itunes, it doesn't let me. HELP!

    I NEED HELP! I can't update my phone without itunes and my computer isn't even recognizing my phone!

    Hello,
    Thanks for using Apple Support Communities.
    I'm not sure if you have a Mac or a Windows PC, but to troubleshoot this issue follow the appropriate link below.
    iOS: Device not recognized in iTunes for Windows
    iOS: Device not recognized in iTunes for OS X
    Take care,
    Alex H.

  • I need help my computer isn't working and there is no was to get on my iTunes and I just updated my phone and now it's stuck on where it shows the plug connected to iTunes help!!!!

    I need help my computer isn't working and there is no was to get on my iTunes and I just updated my phone and now it's stuck on where it shows the plug connected to iTunes help!!!!

    There is no other way than to plug into a computer to restore the phone. You can use another computer to do so, but in case you did not back up to iCloud your data and settings will be gone.
    Follow this article to connect in recovery mode:
    iOS: Unable to update or restore

Maybe you are looking for