1

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?

Get-MaskingSet
Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

4
  • This might seem like an obvious point, but why not install powershell 4.0 on the server?
    – Colyn1337
    Jul 22, 2014 at 19:20
  • @Colyn1337 I would like to, but it needs to be performed with the default installation.
    – slybloty
    Jul 22, 2014 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, 2014 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, 2014 at 17:21

1 Answer 1

0

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .