Windows Server 2012/2016 ADDS Troubleshooting: Maximum password age grayed out, cannot set password
Scenario
Organisation facing this issue when DC password used to expire every 42 days that was the causing restricted access to users, SharePoint sites, and Project server site.
So we searched the internet and found the solution. But as per the solution, the option was grayed out where we could modify server password days and we can put never expire password.
Troubleshooting
Anyway, we found the solution and fixed the issue.
Below are the steps by step solution with screenshots:
Log in to the server with your administrator account.
Click Windows+ and enter gpmc.msc
Once we will hit enter, Group Policy Management wizard will open:
Navigate to server >Group Policy Management > Forest: Server Name > Domains > Server Domain > and select Default Domain Policy. Here we will right-click on the same and click Edit:
Once we will click Edit, it will open Group Policy Management Editor. Here we will select the required option to do modify. See below for more:
Here we will select navigate on below option to do modify for Maximum Password Age.
Computer Configuration > Policies > Windows Settings > Security Policies > Password Policy.
Here we will double-click on Maximum Password Age. Now we can find the option enabled over here. Finally, we reached the option where we can set our issue.
Select the Maximum Password Age properties. Under the tab Security Policy Setting and modify as per our requirement.
NOTE: Here if we will select 0 days Option the password will not expire.