Quick Tip: Determine Active Directory Account Status From The Windows Commandline
Use the following command to Determine Active Directory Account Status from the Windows Commandline without Powershell or any special software. User info like:
- Is the account active?
- When does the account expire?
- When was the password last set?
- When does the password expire?
- When did the user last login?
- etc.
net user /domain <USERNAME>
This command will display the following domain user information:
User name USERNAME
Full Name USER NAME
Comment CNC NINJA
User's comment YES, THAT'S RIGHT... NINJA!
Country/region code 000 (System Default)
Account active Yes
Account expires Never
Password last set 1/6/2021 8:32:30 AM
Password expires Never
Password changeable 1/6/2021 8:32:30 AM
Password required Yes
User may change password Yes
Workstations allowed All
Logon script \\SERVER\SHARE\LOGON.CMD
User profile
Home directory
Last logon 10/23/2023 9:28:32 AM
Logon hours allowed All
Local Group Memberships
Global Group memberships *RED-NINJAS *JDE-MASTERS
There are many tasks that can be completed with the “net user” command. The following link goes into further detail:
ShellGeek
Author
Stewart Schatz
More Stories
How to Use the XCOPY Command in Windows
Did you know that all versions of Windows have a limitation of 260 characters that can be in the path...
Where Is Java Installed?
Below are a few commands that can be run to determine where Java is installed on each Operating System: Windows:...
Windows God Mode… What!?!
Windows God Mode is a hidden feature in the Windows operating system that allows users to access all of the system’s control panel options and settings in a single place.
AutoHotKey – An Easy To Learn Time Saving App
AutoHotKey - https://www.autohotkey.com/ What is it? The website says: AutoHotkey is a free, open-source scripting language for Windows that allows...
A Better SMTP Test
Several years ago, I posted about an SMTP Test that I was using. Well, lately, I've needed something with a...
How To Kill All Processes With The Same Name On Windows
The taskkill command can be used many different ways to end or kill running processes on Windows Server 2012 and...
Average Rating