title: "no snap ins have been registered for powershell 4"
body: <p>I have a <code>Windows Server 2012 R2 Standard</code> enabled with <code>ADFS</code>. I can open and use <code>ADFS Management</code> console. I am not sure which version of <code>ADFS</code> is installed on the server. As per Microsoft blogs <code>Windows Server 2012 R2</code> comes with <code>ADFS 2.0</code>. I donot know how to confirm this.</p>
  
  <p>Now I need to skew the <code>ADFS</code> clock by 2 minutes using the powershell <code>ADFS</code> snapin.
  But when I try giving "get-pssnapin -registered" It doesnot list <code>ADFS</code> server.</p>
  
  <p>Can anyone help me on how to execute the below commands on powershell:</p>
  
  <pre><code>Add-PSSnapin Microsoft.Adfs.PowerShell
  Get-ADFSRelyingPartyTrust –identifier “urn:party:sso” | Set –NotBeforeSkew 2
  </code></pre>
  
  <p>Below is the error that I am getting:</p>
  
  <pre><code>PS C:\Users\manasa.pandiri&gt; add-pssnapin microsoft.adfs.powershell
  add-pssnapin : No snap-ins have been registered for Windows PowerShell version 4.
  At line:1 char:1
  + add-pssnapin microsoft.adfs.powershell
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : InvalidArgument: (microsoft.adfs.powershell:String) [Add-PSSnapin], PSArgumentException
  + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
  </code></pre>