PowerShell 2.0中的Get-MaskingSet

我想在Windows Server 2008 R2上使用PowerShell 2.0检索当前的屏蔽集。 不幸的是,在这个PowerShell版本下,cmdlet Get-MaskingSet不存在。
有没有其他的方法来从这个特定的configuration检索这个列表?

GET-MaskingSet
应用到:Windows 8.1,Windows PowerShell 4.0,Windows Server 2012 R2

你可以使用好的旧WMI:

 Get-WmiObject -Namespace "root\Microsoft\Windows\Storage\providers_v2" -Class "MSFT_StorageSubSystemToMaskingSet" 

不知道你有什么信息,但这应该让你开始。