title: Invalid namespace in PowerShell working with FSRM
body: <p>Trying PS command:</p>
  
  <pre><code>Set-FsrmFileGroup -Name "Anti-Ransomware File Groups" -IncludePattern @((Invoke-WebRequest -Uri "https://fsrm.experiant.ca/api/v1/combined" -UseBasicParsing).Content | ConvertFrom-Json | % {$_.filters})
  </code></pre>
  
  <p>Getting error:</p>
  
  <pre>New-FsrmFileGroup : Invalid namespace
  At line:1 char:1
  + New-FsrmFileGroup -Name "Anti-Ransomware File Groups" -IncludePattern @((Invoke- ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : MetadataError: (MSFT_FSRMFileGroup:Root/Microsoft/...T_FSRMFileGroup) [New-FsrmFileGroup], CimException
      + FullyQualifiedErrorId : HRESULT 0x8004100e,New-FsrmFileGroup</pre>
  
  <p>I also notice some errors in FSRM:</p>
  
  <p><a href="https://i.stack.imgur.com/lEKwM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lEKwM.png" alt="errors"></a></p>
  
  <p>Firewall is off and I am domain admin running this as admin. SFC and a WMI repair came back as good. I am going based off a guide (https://fsrm.experiant.ca/). This has worked across a ton of other servers so I don't believe the commands to be improperly formatted.</p>
  
  <p>Output of <code>Get-WmiObject -Namespace 'Root/Microsoft/Windows/Fsrm' -List</code>:</p>
  
  <pre>Get-WmiObject : Could not get objects from namespace Root/Microsoft/Windows/Fsrm.
  Invalid namespace
  At line:1 char:1
  + Get-WmiObject -Namespace 'Root/Microsoft/Windows/Fsrm' -List
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (:) [Get-WmiObject], ManagementException
      + FullyQualifiedErrorId : INVALID_NAMESPACE_IDENTIFIER,Microsoft.PowerShell.Commands.G‌​etWmiObjectCommand</pre>