Q. How can I get the NET USE command to store my credentials when I am prompted for a password?

Jerold Schulman

July 30, 2006

1 Min Read
ITPro Today logo in a gray background | ITPro Today

I first discussed the /savecred switch in tip 8230 How can a Windows XP user schedule a job using the AT command on an untrusted Windows 2000 or Windows Server 2003 computer?

Using the /savecred switch, as in net use * \ServerNameShareName /savecred, causes the prompted users' credentials to be entered into Stored User Names and Passwords when they successfully connect, or if Cancel is pressed on a returned error message.

When you manually create an entry using Control Panel / User Accounts / Advanced tab / Manage Passwords / Add, you can use a specific resource (server.domain.forest.com ), a less specific resource (*.domain.forest.com) for all resources in domain.forest.com, or a general set of resources (*.forest.com) for all resources in forest.com. If you have multiple credentials that can apply to the target resource, Windows XP SP1 and later uses the most specific credential that is applicable.


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like