title: How to set logon hours to logon denied in ActiveDirectory Using Powershell
body: <p>I would need help with the powershell command for setting logonhours property to login denied in AD.</p>
  
  <p><a href="https://i.stack.imgur.com/drlwj.png" rel="nofollow noreferrer">Screen Capture for Logon Hours Window in AD</a></p>
  
  <p>Thanks.</p>