Get the status of application deployments on devices

Hi, I need to query (in PowerShell, ideally) the evolution of the advancement status of application deployments on the devices they are pushed to. I need to execute this query regularly and to retrieve what are the latest changes regarding the deployments
(ex. the application deployment succeeded on machine 1, is in progress on machine 2 etc.)
Do you have an idea on how to get that info?
Thanks in advance,
Marius
Marius

The nice thing is that the complete class is documented, including possible states (see:
http://msdn.microsoft.com/en-us/library/hh948459.aspx).
To give you an idea of how you could use it, I used the following function to determine the deployment state of an application for a specific device:
#Function to get the deployment state of an application deployment
function Get-AppDeploymentSate {
param (
[string]$AssignmentID
$DeploymentState = Get-WmiObject -Class SMS_AppDeploymentAssetDetails -Namespace root/SMS/site_$($SiteCode) -ComputerName $SiteServer -Filter "MachineId='$ResourceId' and AssignmentID='$AssignmentID'"
if ($DeploymentState -eq $null) {
$Compliancy = "No Information"
else {
switch ($DeploymentState.StatusType) {
1 {$Compliancy = "Success"; break;}
2 {$Compliancy = "In Progress"; break;}
3 {$Compliancy = "Requirements Not Met"; break;}
4 {$Compliancy = "Unknown"; break;}
default {$Compliancy = "Error"}
Return $Compliancy
My Blog: http://www.petervanderwoude.nl/
Follow me on twitter: pvanderwoude

Similar Messages

  • While installing the latest iTunes version I get the following msg:"Service Apple Mobile Device failed to start.Verify that you have sufficient privileges to start system services. I already tried it from the installer Running it as Administrator

    While installing the latest iTunes version I get the following msg:"Service Apple Mobile Device failed to start.Verify that you have sufficient privileges to start system services. I already tried it from the installer Running it as Administrator and still get the same message.  I click "ignore" and finish the installation but when I try to open it I get this "Runtime Error! R6034 An application has made an attempt to load the C runtime library incorrectly."  I already uninstalled iTunes and all other applications involved and re-installed itunes from the itunes site and the problem persists. Please help!

    Solving MSVCR80 issue and Windows iTunes install issues.

  • Yes another user with problem with Apple Mobile Device Support, I am getting the error message: Service 'Apple Mobile Device'(Apple Mobile Device) failed to start. Vertify that you have sufficient privileges to start system service....

    Yes another user with problem with Apple Mobile Device Support, I am getting the error message: Service 'Apple Mobile Device'(Apple Mobile Device) failed to start. Vertify that you have sufficient privileges to start system service....I hit retry and it came up again. I hit ignore and it prompted me to hit finish so Itunes can open.   I looked thru alot of these posts on here to try and resolve this problem myself but it's not working too well...I downloaded Itunes to my desktop so I can right click it with the program i downloaded called WinRAR. I extracted it and then went into the folder called Itunes64setup. I saw the file called AppleMobileDeviceSupport64 in there so I began to try and download it on it's own. Well that didn't work as I planned and got this error message:
    Apple Mobile Device Support wasn't installed on your computer. The installer encountered errors before Apple Mobile Device Support could be configured. Your system has not been modified. To retry these operations at a later time,please run the installer again.
    Well I tried to run it again and came up with the same message...I see that some people got great support to help them so I am hoping someone can help me as well. I know "b nor" is very qualfied and hopefully can help me! Please advise what I can do. Thank you

    Hi Iss9243,
    Welcome to the Support Communities!
    You've already tried some great troubleshooting steps, but the article below gives you quite a few more for this issue.  Hope it helps ....
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Judy

  • How to get the status of a window?

    Is there a way to get the status of a display window? I'm looking specifically for whether or not it is open and what image is being displayed in it.
    If there is no easy way to do this, can it be added to the list of suggestions for the next version?

    Right now there is no way to determine these attributes from software. When I went to enter a suggestion to R&D, I found that a very similar one was submitted recently. I added your suggestions to the current one. I'm sorry there isn't an easy solution.
    Kyle V.

  • I am having a problem when I plug my iPod into my macbook. When I plug the cable into my mac I get the following message - "Because a USB device was drawing too much power from your computer, your USB device has been disabled." PLEASE HELP!

    I am having a problem when I plug my iPod into my macbook. When I plug the cable into my mac I get the following message - "Because a USB device was drawing too much power from your computer, your USB device has been disabled." CAN SOMEONE PLEASE HELP!

    The rest of the message in the pop up window says "To prevent damaging your computer, the USB device drawing too much power has been disabled. Other devices may have also been disabled. When you disconnect the device drawing too much power, your other USB devices will be enabled again."

  • I plugged in my ipod and now i get the error message: Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled" - i have a MAcBook pro and now my USB ports do not work - can anyone help me ???

    i plugged in my ipod and now i get the error message: Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled" - i have a MAcBook pro and now my USB ports do not work - can anyone help me ???

    Sometimes you have to reset the SMC two or three times for it to work, don't know why. I've seen that error message before and 100% of the time it was fixed with an SMC reset. I suppose it's possible that your keyboard or mouse IS drawing too much power, do you have access to another you could try?

  • I'm trying to install iTunes on my pc and i get the error message "Service Apple Mobile Device Failed to Start.  Verify you have sufficient privileges to start system services

    I'm trying to install iTunes on my pc and I get the error message "Service Apple Mobile Device Failed to Start.  Verify you have sufficient privileges to start system services.
    What do I need to do to get iTunes to install?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • I can no longer charge my iPhone5 through either of my macbook pros. I get the error message that a USB device is using too much power. Can anyone help?

    I can no longer charge my iPhone5 through either of my macbook pros. I get the error message that a USB device is using too much power. Can anyone help?

    I reconnected the original powered hub that I thought probably caused the problem and this time it shut down the whole computer. When I rebooted everything now works perfectly. The system reset. I tried another powered hub and it didn't have the same effect so the old one is heading for the bin and with fingers crossed all systems are now working perfectly. Trying to reset PRAM or reset the SMC didn't work but causing the same power issue did. Thanks for your input though. It did get me to think what was the original cause.
    Cheers
    Guy

  • How do I get the status bar to appear in FF4.1?

    I upgraded to FF4.1 and discovered the status bar had disappeared and a few add-ons no longer worked :/
    After discovering this I re-installed FF3.
    How can I get the status bar back?
    TYIA
    Max

    See step #10 installing the Status-4-Evar extension in the following ...
    You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

  • When attempting to reinstall iTunes, I get the following message "Service (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services" Any help appreciated

    When attempting to reinstall iTunes, I get the following message "Service (Apple Mobile Device) failed to start. Verify that you have sufficient privileges to start system services" Any help appreciated

    Hi emelville,
    Thanks for using Apple Support Communities.  You may need to restart the Apple Mobile Device Service.  This article has instructions that may help:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    If that doesn't resolve the issue, I would recommend trying a thorough uninstall and reinstall of iTunes as described here:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Cheers,
    - Ari

  • I cant install I tunes I keep getting the following message: "Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privelges to start system services."

    I cant install I tunes I keep getting the following message: "Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have sufficient privelges to start system services." I have Windows 7 - can you tell me what is wrong?

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • How do i stop getting the same notifications on all my devices?

    How do i stop getting the same notifications on all my devices?
    Is it possible for me to read an email on my iPhone, and then not have to see the notification on my mac?

    Get a separate email address (gmail) to use for messages on your iPad.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
     Cheers, Tom

  • TS3212 when i try to download itunes i keep getting the error message " Service 'Apple Mobile Device' (Apple Mobile Device) Failed to start

    when i try to download itunes i keep getting the error message " Service 'Apple Mobile Device' (Apple Mobile Device) Failed to start. Verify that you have sufficient privileges to start system services. Can someone help?

    Hey craiglarkin,
    First, I would try following along with the steps in this link:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    If you end up having to remove and reinstall iTunes and AMDS, make sure to follow the steps closely, including the order in which you uninstall.
    Welcome to Apple Support Communities!
    Have a great day,
    Delgadoh

  • Which table i will  get the  status of the User decision Result status

    Hi Experts
    Which table i will  get the  status of the User decision Result status
    (eg : Inspection completion forced )
    This i can see in QA33

    Hi jag
    Ok fine actually it is not storing in any table...these r all text symols...if u see this program MQEVAF22...U EILL GET SOME IDEA
    CALL FUNCTION 'QAST_STATUS_CHECK'
           EXPORTING
                I_OBJNR          = QALS-OBJNR
                I_STATUS         = C_STATUS_PAKO
           EXCEPTIONS
                STATUS_NOT_ACTIV = 01.
      IF SY-SUBRC NE C_RC01.
        MOVE C_KREUZ TO L_STAT_PAKO.
      ELSE.
        CLEAR L_STAT_PAKO.
      ENDIF.
    Prüfen, ob Los bestandsrelevant ist
      MOVE RQEVA-STAT_BERF TO L_STAT_BERF.
    Prüfen, ob Los auf SKIP sitzt
      CALL FUNCTION 'QAST_STATUS_CHECK'
           EXPORTING
                I_OBJNR          = QALS-OBJNR
                I_STATUS         = C_STATUS_SKIP
           EXCEPTIONS
                STATUS_NOT_ACTIV = 01.
      IF SY-SUBRC NE C_RC01.
        MOVE C_KREUZ TO L_STAT_SKIP.
      ELSE.
        CLEAR L_STAT_SKIP.
      ENDIF.
      IF QALS-STAT35 >< C_KREUZ.
    VE noch nicht getroffen !
        IF     ( QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 )
           AND QALS-STAT13     = C_PPKTTYP-PHPR
           AND G_ANZAHL_PPKT_LOEVM > CI_0.
    Es wurden physische Proben storniert !              PRIORITÄT 1A
            MOVE TEXT-I17 TO RQEVA-INFO_LINE.  L_TEXT_NR = 'I17'.
        ELSEIF ( QALS-STAT14 = C_KREUZ AND QALS-OFFENNLZMK > CI_0 )
          OR ( L_STAT_PAKO = C_KREUZ
               AND ( QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 ) ).
    Prüfung wurde abgebrochen !                         PRIORITÄT 1
          MOVE TEXT-I04 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I04'.
          MOVE C_KREUZ TO L_ICON.
        ELSEIF G_ANZ_RUECK_MK > 0.
    Es wurden Merkmale rückgewiesen  !                  PRIORITÄT 2
          MOVE TEXT-I01 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I01'.
          MOVE C_KREUZ TO L_ICON.
        ELSEIF QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 .
          IF QALS-OFFENNLZMK > CI_0.
    Es sind nicht alle Merkmale abgeschlossen !         PRIORITÄT 3
            MOVE TEXT-I02 TO RQEVA-INFO_LINE.  L_TEXT_NR = 'I02'.
          ELSEIF QALS-OFFEN_LZMK > CI_0.
            MOVE TEXT-I05 TO RQEVA-INFO_LINE.  L_TEXT_NR = 'I05'.
          ENDIF.
        ELSEIF QALS-WERK NE QALS-WERKVORG.
        Prüflosmenge wurde umgelagert auf anderes Werk   Priorität 4
          MOVE TEXT-I16 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I16'.
        ELSEIF QALS-LMENGEIST > QALS-LOSMENGE.
        Istmenge im Los größer als Losmenge!             Priorität 5
          MOVE TEXT-I15 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I15'.
        ELSEIF L_STAT_SKIP    = C_KREUZ.
    Prüfverzicht: Los ist geskippt !                    PRIORITÄT 6
          MOVE TEXT-I03 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I03'.
        ENDIF.
      ELSE.
    VE getroffen bzw. eingetragen
       IF     ( QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 )
           AND QALS-STAT13     = C_PPKTTYP-PHPR
           AND G_ANZAHL_PPKT_LOEVM > CI_0.
    Es wurden physische Proben storniert !              PRIORITÄT 1A
            MOVE TEXT-I17 TO RQEVA-INFO_LINE.  L_TEXT_NR = 'I17'.
        ELSEIF ( QALS-STAT14 = C_KREUZ AND QALS-OFFENNLZMK > CI_0 )
          OR ( L_STAT_PAKO = C_KREUZ
              AND ( QALS-OFFENNLZMK > CI_0  OR QALS-OFFEN_LZMK > CI_0 ) ).
    Prüfung wurde abgebrochen !                         PRIORITÄT 1
          MOVE TEXT-I04 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I04'.
          MOVE C_KREUZ TO L_ICON.
        ELSEIF L_STAT_PAKO EQ SPACE
           AND ( QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 ).
    Es sind noch Langzeitmerkmale zu bearbeiten !       PRIORITÄT 2
          MOVE TEXT-I05 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I05'.
        ELSEIF L_STAT_BERF = C_KREUZ AND QALS-STAT34 EQ SPACE.
    Los ist bestandsmäßig noch nicht entlastet !        PRIORITÄT 3
          MOVE TEXT-I06 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I06'.
        ELSEIF QALS-WERK NE QALS-WERKVORG.
        Prüflosmenge wurde umgelagert auf anderes Werk   Priorität 4
          MOVE TEXT-I16 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I16'.
        ELSEIF QALS-LMENGEIST > QALS-LOSMENGE.
        Istmenge im Los größer als Losmenge!             Priorität 5
          MOVE TEXT-I15 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I15'.
        ELSEIF L_STAT_SKIP = C_KREUZ.
    Prüfverzicht: Los ist geskippt !                    PRIORITÄT 6
          MOVE TEXT-I03 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I03'.
        ENDIF.
      ENDIF.

  • From which table can we get the status of sales order

    hi
    from which table can we get the status of sales order

    Hi
    Check the Table <b>VBUK for HEADER level status</b> of Sales order
    and <b>VBUP for Item level statuses</b>
    enter VBELN  = Sales order and VBTYP = C for sales orders
    as VBUK and VBUP stores all Sales documents like deliveries, Invoices, quotations, contracts etc
    <b>Reward points for useful Answers</b>
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

Maybe you are looking for

  • Selection Screen - Text instead of Key in the value help

    Hi , I have implemented selection options for Web dynpro. The value help for the selection fields displays the key of the selected value (standard). I would like to know if there is an option to display the text (instead of the key) in the field. Key

  • Problem with Capturing a Table

    When I have a function that refers to a table outside of the sheet that I am working on, and I try to capture that table so I can use it over again on another sheet, it does not save any functions that reference the other table outside of the one tha

  • File adapter "Directory" parameter

    Hello colleague, While going through the documentation of file adapter the statement regarding directory of the file was not clear -> "The directory specified must be accessible by the service user of the Adapter engine, with appropriate read/write p

  • Calendar Issue on Nokia Asha 311

    Anyone who's also experiencing a problem about the calender when you are about to add an event and the icons are not transparent. Moderator's Note: The subject was edited as we have created a new thread for the topic being discussed.

  • I need macbook with arabic keyboard

    I would ilke to bay the new macbook pro with arabic keyboard.Can anyone help me pleas.