rimshot609
Board Regular
- Joined
- Jun 4, 2015
- Messages
- 79
I'm working on a script to reset an AD password from the command prompt. Here is what i've been able to find through Google:
dsquery user -samid johndeer | dsmod user -pwd abc$1234 mustchpwd no
I'm wanted to know what happens if you send that command without a username like this:
dsquery user -samid | dsmod user -pwd abc$1234 mustchpwd no
I just want to be sure I don't screw anything up if a UID is not present.
dsquery user -samid johndeer | dsmod user -pwd abc$1234 mustchpwd no
I'm wanted to know what happens if you send that command without a username like this:
dsquery user -samid | dsmod user -pwd abc$1234 mustchpwd no
I just want to be sure I don't screw anything up if a UID is not present.