How do I find an Invoke-CimMethod ReturnValue enum RRS feed

  • Question

  • I'm using Invoke-CimMethod on the Win32_services class. How do i find a list/enum of what the .returnvalue means? For example, I see that when use the method StartService on a service that's already started I get a returnvalue of 10. When i try to start a service that's disabled i get a returnvalue of 3.

    Is there a way to either output the list from PS or a good internet search query or site that i should be looking at?


    Tony Auby

    Thursday, August 16, 2018 2:09 PM


All replies