Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DSMOD

Status
Not open for further replies.

SQLScholar

Programmer
Aug 21, 2002
2,127
GB
Hey all,

I am doing a load of DSMOD commands. Each one works fine on its own - if i cut and paste into a command prompt.

However if i put any of them into a Batch file it just keeps looping on the same entry (first one if there are multples) and i have to Ctrl>C out.

Any ideas

Dan

----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
show us your batch file...


_______________________________________
I hope any help I give leads to great successes.
MCSE, MCSA, MCTS, CCA, VCP, CCNA
 
Code:
DSMOD USER "CN=user1,OU=staff,OU=accounts,DC=here,dc=com" -empid abv222
DSMOD USER "CN=user2,OU=staff,OU=accounts,DC=here,dc=com" -empid dsd222 
DSMOD USER "CN=user3,OU=staff,OU=accounts,DC=here,dc=com" -empid dfd444

----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
sorry - ingore that. I was being stupid.

I got a mate to look at it - and as he did i releasised what i did. Card board coder!

----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
I tested this and it works great.(made a similar structure in my test AD) is there anything else in the script or just these three lines? try putting a pause in between each line so that you can control the batch file...for testing only of course. And you are talking a .bat file correct? Also, try an exit at the 4th line.


_______________________________________
I hope any help I give leads to great successes.
MCSE, MCSA, MCTS, CCA, VCP, CCNA
 
Cool, thanks for the update.


_______________________________________
I hope any help I give leads to great successes.
MCSE, MCSA, MCTS, CCA, VCP, CCNA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top