Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

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.

Tip: Change the maximum password age via the local group policy!


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 net accounts /maxpwage:90 < e.g. ninety days


Or replace it with the duration (in days ) you want to use. for example for 90 days:
net accounts /maxpwage:90 or to deactivate  net accounts /maxpwage:0  


(Image-1) Set maximum password age / expiration date via Windows PowerShell!
Set maximum password age / expiration date via Windows PowerShell!

-
▲ Back to the top ▲




FAQ 99: Updated on: 12 August 2021 18:10 Windows
Windows-Console

Command line to delete empty folders Windows 11, 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
Windows-Console

Change Windows 11, 10, ... time zone via Terminal, Powershell, command prompt!


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
Windows-Console

Difference Between PowerShell and Command Prompt?


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
Windows-Console

Connection to remote desktop service via command prompt!


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:
Windows-Console

Command line arguments in the command prompt with examples!


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.
Windows-Console

Waiting for keyboard input Command prompt Script?


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
Windows-Console

Files that are younger than the date can be deleted via the command line!


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
Asked questions on this answer:
Keywords: windows, 11, 10, console, maximum, password, expiration, date, powershell, desktop, server, Questions, Answers, Software




    

  + Freeware
  + File management
  + Decoration and fun
  + Automation
  + Office
  + Order on the PC
  + PC testing tools

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + DontSleep
  + ExperienceIndexOK
  + QuickTextPaste
  + DesktopNoteOK
  + ShortDoorNote
  + AutoHideDesktopIcons
  + BlankAndSecure
  + AlwaysMouseWheel
  + NewFileTime
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2022 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.062


► Excel cells in the table are merged, can you separate them again? ◄ ► Load and Save windows desktop Icon Layout from file (quick restore)! ◄ ► Constant crashes after Windows 10 update, why? ◄ ► Help the MS Windows 11 does not have an on-screen keyboard! ◄ ► Where can I see the percentage of the operating system's market share, for example for the new Windows 10? ◄ ► What is a solid state drive? ◄ ► How can i browse FTP folders in Explorer Views, do you support SFTP? ◄ ► Digital desktop clock free download full version for Windows 11, 10, ...! ◄
This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....