Jump to content

Recommended Posts

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...