title: Get a GPO setting using powershell
body: <p>on a windows 8 machine, I want to read the GPO setting "Accounts: Block Microsoft accounts" which can manually be configured by going here : </p>
  
  <p><code>Computer Configuration -&gt; Windows Settings -&gt; Security Settings -&gt; Local Policies -&gt; Security Options -&gt; "Accounts: Block Microsoft accounts"</code> </p>
  
  <p>However i want to read the setting using a <strong><em>powershell script</em></strong></p>
  
  <p>The two options I tried: </p>
  
  <ol>
  <li><strong>Generate the HTML report using Get-GPOReport :</strong> the local policies dont come up.</li>
  <li><strong>Using gpresult /r :</strong> for local group policy it says The following GPOs were not applied because they were filtered out.</li>
  </ol>
  
  <p>can anyone guide me as to how I should proceed.
  I am extremely new to powershell!</p>
  
  <p>Thanks.</p>