title: How do I get the NetworkCategory prior to Windows 8 in PowerShell?
body: <p>Occasionally, when we perform our maintenance cycle the domain controller will take too long and some of our virtual machines will default to the public network category instead of domain authenticated. After searching through BOL and Google, I found the <a href="https://technet.microsoft.com/en-us/library/jj899566.aspx" rel="nofollow">Get-NetConnectionProfile</a> cmdlet but it only seems to be available on Windows 2012 and later. We have some machines still running Windows 2008. I've already attempted to use the -CimSession switch to connect to a 2008 machine and it returned an error. </p>
  
  <p>Is there a PowerShell equivalent for earlier versions of Windows?</p>