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
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + 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

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.077


► Save the INI file in my Google Drive or OneDrive? ◄

► Is there a command line option to start the program minimized? ◄

► How to find out if i have windows 8.1 or 10 version, is it x32 or x64? ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....