I'm trying to retrieve the current masking sets using PowerShell 2.0 on a Windows Server 2008 R2. Unfortunately, the cmdlet Get-MaskingSet does not exist under this PowerShell version.
Are there any other ways to retrieve this list from this particular configuration?

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

  • This might seem like an obvious point, but why not install powershell 4.0 on the server? – Colyn1337 Jul 22 '14 at 19:20
  • @Colyn1337 I would like to, but it needs to be performed with the default installation. – slybloty Jul 22 '14 at 19:33
  • 1
    You could create a new 08r2 base image and slip the WMF4.0 install in there. I'm weighing the effort involved between reverse engineering a cmdlet or creating a new server WIM. To me, creating a new server image would be the easiest and fastest. – Colyn1337 Jul 23 '14 at 17:12
  • @Colyn1337 That would be a great idea if I didn't have to deploy the packaged script over multiple servers which I'm not in charge of. – slybloty Jul 23 '14 at 17:21

You can use good old WMI:

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

Not sure what bit of information you are after but this should get you started.

  • This namespace (root\Microsoft\Windows\Storage\providers_v2) is not available for Windows 2008 R2 with SCVMM 2012. – slybloty Sep 10 '14 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.