Net use with spaces?

G

gbarry

How do I map a drive with net use if the name of the share
has a space in it, i.e. "share name"? If I do this:

net use f: \\servername\share name

Windows only sees "share" and not name. There are no login
scripts right now; drives are mapped locally on all
machines causing total chaos. We need to move to login
scripts but I am stuck.

Also, how about mapping a networked printer? How can I do
that?

Thank you,
G Barry
 
D

David Trimboli

Use quotation marks.

net use f: "\\servername\share name"

It's easier to print to network printers from the command line than to map
them. For printing look up PRINT, NET PRINT, and NET USE. Also run this
command and see if anything there helps:

rundll32 printui.dll,PrintUIEntry /?

Others may have more information on this.

David
Stardate 4176.9
 
G

Guest

Thank you, that is what I needed to know.

I was unclear about my printing question: I need to know
how to assign printers in a login script so that they
don';t have to be done locally to every machine and for
every profile on that machine. I want to control it by
user (via security groups) so that userA in locationA will
always have PrinterA as the default. Similar to mapping
drives.

Thanks again,
grace
 
J

Jerold Schulman

Use the technique from tip 672 in the 'Tips & Tricks' at http://www.jsiinc.com

Thank you, that is what I needed to know.

I was unclear about my printing question: I need to know
how to assign printers in a login script so that they
don';t have to be done locally to every machine and for
every profile on that machine. I want to control it by
user (via security groups) so that userA in locationA will
always have PrinterA as the default. Similar to mapping
drives.

Thanks again,
grace


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 

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