title: How do I find out from powershell if I am on a server or workstation?
body: <p><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms724834(v=vs.85).aspx" rel="noreferrer">This doc explains how to get your windows version</a>, but to find it in PowerShell is harder.</p>
  
  <p><code>[System.Environment]::OSVersion</code> has a lot of good info but not the Server-Workstation Flag...</p>