I believe the missing space after can be attributed to Lazy Thumb Syndrome
(LTS).
I will try to be more descriptive in what I need done. Right now the
command...
net use z: \\##.##.##.##\folder /user:domain\admin "password"
... does two things. It maps a network drive to drive Z: AND it logs into
that drive with a username and password. I need a command (if there is such a
command) that will only do the latter. All my network drives are already
mapped, I just want a command that will login to them.
Thanks
- Show quoted text -
Here's an almost brilliant idea, and it's considered a best practice,
and why I don't see the 'MVP' 's talking about it, is beyond me...
In a networked environment, it's common to have a startup.bat or
logon.cmd as a startup script, that does numerous things, map drives,
setup printers, sync folders, set the official time, etc... Do you
have an Windows Active Directory environment? if so, your DC will be
none the wiser and your computers will always be on the same time....
I'll see if I can't find ours here....
I would suggest you taking 10 minutes and write a startup script the
right way... For every drive you have mapped, document them and then
delete them using your script...
Your script should start out like this, deleting your mapped drives
first, then remapping them.... that doesn't actually bring up your
window, but it does 2 things. Maps, and authenticates...
There is a potential that this will add several seconds to your boot,
but I've grown quite used to it..
Here is a snippit of our logon script... it too uses UNC(universal
naming convention) instead of IP, words either way
=====================
@echo off
net use f: /delete /yes
net use h: /delete /yes
net use i: /delete /yes
net use j: /delete /yes
net use k: /delete /yes
net use l: /delete /yes
net use m: /delete /yes
net use n: /delete /yes
net use p: /delete /yes
net use q: /delete /yes
net use r: /delete /yes
net use s: /delete /yes
net use t: /delete /yes
net use u: /delete /yes
net use v: /delete /yes
net use x: /delete /yes
net use z: /delete /yes
net time \\fs-2 /set /yes
net use f: \\fs-1\ntvol
net use h: \\fs-1\pbg$
net use i: \\fs-1\share
net use j: \\fs-1\wpdata
net use k: \\fs-8\ppc_aa
net use l: \\fs-1\clidata
net use n: \\fs-8\cdroms
net use p: \\fs-2\ntvol
net use q: \\scan\ntvol
net use x: \\fs-1\archive
net use z: \\fs-1\cbh
==============
RedForeman