KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to pull Physical Execution paths of all the Windows Services on a Set of Servers, that run on Win 2k8. As, the powershell version that is shipped with this OS is 2.0, I wanted to use Get-service command instead of Get-WmiObject. I know that I can pull the physical path using the command given below $QueryApp = "Select * from Win32_Service Where Name='AxInstSV'" $Path = (Get-WmiObject -ComputerName MyServer -Query $QueryApp).PathName I donot want this command to pull the physical path but wanted to use Get-Service command that comes with PS Version 2.0. Any help would be much appreciated.
Tags (comma-separated)
Save Edits
Cancel