- Remote in to Domain Controller
- Run "Group Policy Management"
- Expand Forest, Domains and your AD domain
- Right-click the "Default Domain Policy" and select "Edit"
- Group Policy Management Editor appears.
- Expand Computer Configuration
- Expand Policies
- Expand Windows Settings
- Expand Security Settings
- Expand Account Policies
- Select Password Policy
- Enable policies with 0 values as needed in the right pane.
- Select Account Lockout Policy
- Make changes as needed.
- On Windows 2012 or later
- Use Powershell command "Invoke-GPUpdate"
- On Windows 2008 or earlier
- Use command "gpupdate /force"
Showing posts with label Windows Server Admin. Show all posts
Showing posts with label Windows Server Admin. Show all posts
Friday, January 22, 2016
Remove Password Change Requirement in AD
For test AD environment, it is often convenient to disable the default password requirements such as minimum length, expiration days, etc. Here's a quick cheat sheet on how to do it.
Sunday, September 6, 2015
.NET optimization service at very high CPU utilization
On Server 2012 R2, after running Windows Update to install important updates, the CPU utilization of the server could get pegged at 100% due to .NET optimization service (Ngen.exe).
As the name suggests, all installed .NET frameworks are being optimized via re-compiling, which leads to a prolonged period of 100% CPU usage.
Run the following if you want to get this optimization process over with at your command. Run it and come back after a while (10~20 min). When it is done, the server should behave normally.
After optimization is done for each .NET Framework version, when running the command again, you will see confirmation message like below.
As the name suggests, all installed .NET frameworks are being optimized via re-compiling, which leads to a prolonged period of 100% CPU usage.
Run the following if you want to get this optimization process over with at your command. Run it and come back after a while (10~20 min). When it is done, the server should behave normally.
Get-ChildItem $env:SystemRoot\Microsoft.net\NGen.exe -recurse | ForEach-Object { & $_ executeQueuedItems }
Basically, the command above lets us to run "Ngen.exe executeQueuedItems" per each .NET Framework versions manually at the time of our choosing, rather than letting the server finish when it can later, which may cause unexpected slowness in performance.After optimization is done for each .NET Framework version, when running the command again, you will see confirmation message like below.
Subscribe to:
Posts (Atom)