Churchers Posted August 16, 2013 Posted August 16, 2013 I have this working username = tomjones dsquery user -name "%username%" | dsmod user -disabled yes But if the username contains a . username = sue.smith dsquery user -name "%username%" | dsmod user -disabled yes I get the following error: dsmod failed:'Target object for this command' is missing. type dsmod /? for help.
Churchers Posted August 16, 2013 Author Posted August 16, 2013 Worked it out ! -name is the display name I wanted dsquery user -samid "%username%" | dsmod user -disabled yes
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now