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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing cached credentials for multiple users

Status
Not open for further replies.

DTracy

Programmer
Feb 20, 2002
844
US
Hi all,
I have a situation where several XP pro workstations have from 10 to 30 user profiles on each. A change in drive mapping on a server requires that I logon to each workstation as each user and disconnect the mapped drives individually. I have tried altering the login script to include the instructions:

net use */delete
net use */persistent:no
and then the usual drive mapping

But this doesn't work, I still have to disconnect manually before the login script will map the new drives. It takes me all day to do nine workstations because I may have to login 200 or more times.

How can I clear the cached credentials of all users on a single workstation in one operation instead of the way I do it now?

Thanks for any suggestions.


Best Regards,
David Tracy
 
Hi all,
I finally had a chance to drive to the sheriff's substation to test the login script. The first problem I found was:

net use * /delete

This generated a confirm prompt requiring "Y" or "N". This does not happen at the local sheriff office. The same script runs straight through there.

The second problem was:

net use * /persistent:no

This was an error in syntax, and is now:

net use /persistent:no

The rest of the login instructions were correct in form and function, and did execute after the prompt was answered.

The the login box is not displayed so the user does not know to answer yes or no and consequently nothing gets used or changed.

I don't understand why the confirmation prompt is needed at one location and not the others.

Thanks for all the assistance given.

Regards,
David Tracy.
 
net use * /delete

Change to:

net use * /delete /q

I apologize for the syntax error in this line:
net use * /persistent:no

Best,
Bill Castner
 
Thanks Mr. Castner for the suggestion. When I apply the /q switch to the end of that command I receive the error:

The option /Q is unknown.

And then a help screen with the net use syntax is displayed.

This happens on both the XP-Pro and the W2K workstations.

David.
 
Mr. Castner,

Ok, that option (/y) works here in my office. I'll have to wait until tomorrow to test it at the substation and then I'll post the results.

Thanks again,
David.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top