<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Active Directory on PowerShell.org - Welcome Automaters!</title><link>https://powershell.org/tags/active-directory/</link><description>Recent content in Active Directory on PowerShell.org - Welcome Automaters!</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 05 Mar 2024 17:00:33 +0000</lastBuildDate><atom:link href="https://powershell.org/tags/active-directory/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Toggle Logon Restrictions for AD Accounts</title><link>https://powershell.org/articles/2024-03-05-how-to-toggle-logon-restrictions-for-ad-accounts/</link><pubDate>Tue, 05 Mar 2024 17:00:33 +0000</pubDate><guid>https://powershell.org/articles/2024-03-05-how-to-toggle-logon-restrictions-for-ad-accounts/</guid><description>&lt;p&gt;&lt;em&gt;Written by Tino JR&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This script will allow an administrator to enable or disable logon restrictions for an Active Directory (AD) user account. I received a unique requirement, in which several account must remain enabled, but restricted from logging into AD, so I wrote this script.&lt;/p&gt;
&lt;p&gt;As you may know, you can specify logon hours to restrict AD users’ ability to logon during certain hours of the day . This is fine if the exact same time of logon restrictions will not change over time, however there might be a need to block logon access on an as-needed basis. The script can target an individual account, or target all members of a security group.&lt;/p&gt;</description></item></channel></rss>