Hello
Can any one answer the following question please
lets say I do not know the name of the cmdlet or cmdlets I want to use, but I know the object I am looking for has a property called X and I want to find the names of all the cmdlets that will return an object containing property X
take for example get-service that returns an object of type System.ServiceProcess.ServiceController
the objects have a 'property' called status (e.g. stopped, running etc)
So assume I do not know the get-service cmdlet exists (or other cmdlets for that matter) but I do know the name of the property I am interested in e.g. Status so I want to use PowerShell to find all cmdlets which would return an object (does not matter about the type of object) which has the property I am looking for.
Also assume some of the cmdlets may require access to other computers and I do not have this e.g. standalone PC (so I cannot go and get any objects)
I am assuming I may need to parse the XML files like type definition XML files (e.g. the ones you can update if wanted)? the thing is these can reside in different places (e.g. third party module installed under program files for example).
Having said that I am not sure if the XML files contain 'all' of the property names a given object can have (or weather some are built on the fly).
Is there a cmdlet to get this information as get-command cmdlet does not return this information (but rather parameter names) as far as I can see.
Any help most welcome
AAnotherUser__