Finding WMI Instance Path Names

In a previous tip, you learned about how to access WMI instances directly using their individual instance path. Here is how you can find that path for arbitrary WMI objects:

Get-WMIObject Win32_Share | Select-Object __Path

You can simply retrieve WMI instances and look at the "__Path" property. Be sure to note that this property begins with two underscores, not just one.

Twitter This Tip! ReTweet this Tip!


Posted Sep 07 2010, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.