Book now with code EOY2025
An incredibly useful way to use piping is to query for all inactive user accounts and immediately disable them. Want to disable any user account that’s gone inactive for at least half a year? It's done like this: dsquery user domainroot -inactive 26 | dsmod user -disabled yes
brad- wrote: » Microsoft Certified Professional Magazine Online | Column: Piping with DSQUERY I dont think you can change the password expiration properties with a DS command...I would do that in group policy.
blargoe wrote: » I think the -disable and -enable switches are for Account expiration, not password expiration
Use code EOY2025 to receive $250 off your 2025 certification boot camp!