已答复 Get-Service

  • Tuesday, October 30, 2012 11:18 PM
     
     

    How do I incorporate "get-service" into this script that will enable me to see the status (i.e., running, stopped) of the ccm_installedcomponent:

    gwmi -namespace root\ccm -class ccm_installedcomponent -computername "." |

    select-object status,displayname | ft

All Replies

  • Tuesday, October 30, 2012 11:59 PM
    Moderator
     
     

    This forum is for questions about the TechNet Wiki. You question should be asked in a scripting forum. I will move it to "The Scripting Guy's Forum".


    Richard Mueller - MVP Directory Services

  • Wednesday, October 31, 2012 12:55 AM
    Moderator
     
     Answered

    I don't believe you can.

    An installed component is not a service.


    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "