Set maximum password age / expiration date via Windows PowerShell!
Set the maximum password age or the expiration date via Windows PowerShell under MS Windows 11, 10, ... Desktop and MS Server!
If your computer is running Windows 11/10 Home, you can only set the maximum password age through PowerShell or Command Prompt. You can also use this as an alternative to the Local Group Policy Editor on Windows 11/10 Pro, Enterprise and Education.
Set the password expiration date via Windows PowerShell, the solution for all MS OS!
1. Start ► Powershell in admin mode
2. If you want to change the number from the standard days of 42 days,
3. Enter < e.g. ninety days
net accounts /maxpwage:90
Or replace it with the duration (in days ) you want to use. for example for 90 days:
or to deactivate net accounts /maxpwage:90
net accounts /maxpwage:0
(Image-1) Set maximum password age / expiration date via Windows PowerShell!
FAQ 99: Updated on: 12 August 2021 18:10
If you want to delete empty folders via command line, here is the command for all Microsofts Windows 11, 10, Desktop and MS Server OS 1. Hold down
Its easy to change Windows 11, 10, or MS Server time zone via Terminal, Powershell, command prompt Changing the Windows time zone is sometimes faster
The range of commands and the options are the main difference between PowerShell and the command prompt on Windows 11, 10, and MS Server OS The MS PowerShell
It is easy to start a connection to the Remote Desktop Service via the command prompt with arguments on Windows 11, 10, and MS Server OS Contents:
For parameters that can be passed when the batch file is called and other variables via the set on Windows 11, 10, and MS Server OS Contents: 1.
Often you want to stop the script in the batch file and wait for the user to press Enter, or variables to process on Windows 11, 10, and MS Server OS
It is quite easy to delete files that are younger than a certain date via the command line under Windows 11, 10, and MS Server OS Everyone probably
»» My question is not there in the FAQ
windows, 11, 10, console, maximum, password, expiration, date, powershell, desktop, server, Questions, Answers, Software