title: Set-ADFSProperties "EnableExtranetLockout" error in windows server 2008 R2
body: <p>I am implementing SSO using ADFS 2.0. I am using Windows Server 2008 R2 Standard. Now, I want to restrict the number of attempts that a user gets to log on, to 3. I came across <a href="https://technet.microsoft.com/en-us/library/dn486806.aspx" rel="nofollow noreferrer">this</a> which suggested me to set up the following three parameters: </p>
  
  <ul>
  <li>EnableExtranetLockout</li>
  <li>ExtranetLockoutThreshold</li>
  <li>ExtranetObservationWindow</li>
  </ul>
  
  <p>I referred <a href="https://technet.microsoft.com/en-us/library/adfs2-powershell-basics%28v=ws.10%29.aspx" rel="nofollow noreferrer">this</a> to register and add ADFS 2.0 snap-in to windows powershell.</p>
  
  <p>However, when I query Get-ADFSProperties, I don't get the three properties I listed above. <img src="https://i.stack.imgur.com/9rKva.png" alt="enter image description here"></p>
  
  <p>Also quite understandably, I get the following error when I execute this command:
   <strong><em>Set-AdfsProperties -EnableExtranetLockout $true -ExtranetLockoutThreshold 15 -ExtranetObservationWindow ( new-timespan -Minutes 30 )</em></strong>
   <img src="https://i.stack.imgur.com/LdkXc.png" alt="enter image description here"></p>
  
  <p>Error message is: </p>
  
  <pre><code>Set-ADFSProperties : A parameter cannot be found that matches parameter name 'EnableExtranetLockout'.
  </code></pre>
  
  <p>At line:1 char:42</p>
  
  <pre><code>Set-AdfsProperties -EnableExtranetLockout &lt;&lt;&lt;&lt;  $true -ExtranetLockoutThreshold 15 -ExtranetObservationWindow ( new-timespan -Minutes 30 ) 
  CategoryInfo          : InvalidArgument: (:) [Set-ADFSProperties], ParameterBindingException 
  FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.IdentityServer.PowerShell.Commands.SetServiceProperties Command
  </code></pre>
  
  <p>This error has been mentioned <a href="http://blogs.technet.com/b/rmilne/archive/2014/05/05/enabling-adfs-2012-r2-extranet-lockout-protection.aspx" rel="nofollow noreferrer">here</a> but that doesn't apply in my case cause the properties aren't getting listed in the first place!</p>
  
  <p>I would appreciate any help or suggestion wrt the same. </p>
  
  <p>Thanks!</p>