Net use problem - Getting closer

G

Guest

I inquired previously concerning the context for using "net use" in order to
connect to a network printer on one domain from a PC on a different domain.
I am getting closer but still not there. The domain / printer requires a user
name but the password is blank. If I run the .bat file with "user: usersname"
and end the text here when the PC starts up the .bat file runs, the Command
Prompt box opens and runs the . bat file containing the "net use" command. It
then stop and waits for a password to be entered. If I then place the curser
in the Command Prompt box at the place of the flashing curser and click enter
it will finish running and make the printer available. My goal however is to
have the entire process execute without any interaction on my part. If I add
"/password:" to the end of the "net use" command line the .bat file will run
at startup, but the printer does not come on line. Apparently the Command
Prompt program does not interpret “nothing†as being typed as the same as
blank. Is there something I can type following "password:" that will tell the
program the “password†is blank?

Thanks for any help

Ted
 
C

Chuck

I inquired previously concerning the context for using "net use" in order to
connect to a network printer on one domain from a PC on a different domain.
I am getting closer but still not there. The domain / printer requires a user
name but the password is blank. If I run the .bat file with "user: usersname"
and end the text here when the PC starts up the .bat file runs, the Command
Prompt box opens and runs the . bat file containing the "net use" command. It
then stop and waits for a password to be entered. If I then place the curser
in the Command Prompt box at the place of the flashing curser and click enter
it will finish running and make the printer available. My goal however is to
have the entire process execute without any interaction on my part. If I add
"/password:" to the end of the "net use" command line the .bat file will run
at startup, but the printer does not come on line. Apparently the Command
Prompt program does not interpret “nothing” as being typed as the same as
blank. Is there something I can type following "password:" that will tell the
program the “password” is blank?

Thanks for any help

Ted


Ted,

Here's what you get for "net use /?":

C:\>net use /?
The syntax of this command is:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

Try

net use \\whatever * /user:whoever
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top