Net use * /delete
Net use g: \\newserver\share
Kevinm WLKMMAS*TM, QWSZC, VRY+Y, NFH, SAD-VF, DERSDESDFG
~~~
More letters after my name makes me Smarter.
~~~
This space has been rented by:
Http://www.ti
iller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 4:57 PM
To: NT System Admin Issues
Subject: RE: Changing Mappings after server re-name
Net use * /delete
Net use g: \\newserver\share
Kevinm WLKMMAS*TM, QWSZC, VRY+Y, NFH, SAD-VF, DERSD
:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 11:36 AM
To: NT System Admin Issues
Subject: RE: Changing Mappings after server re-name
That won't work because I will want multiple drives with different drive
letter assignments un-mapped and remapped to the same drive letter using
th
Title: RE: Changing Mappings after server re-name
My only question here is why in the world are you letting users (or making them) map their own drives. This should be done with logon scripts.
Thanks,
Blake Fowkes
Waid and Associates
-Original Message-
From: Tom Grabowski
Title: RE: Changing Mappings after server re-name
Just use
net use /delete n:
net use n: \\newserver\share
Eric Wittenberg, MCSE CNA ASE
Technical Systems Analyst
3D Computer Services Ltd.
Edmonton, Alberta
(780)484 9788 Fax (780) 484 9811
e-mail [EMAIL PROTECTED]
URL www.3dcomp.com
You have all been a great help.
Yes I know what net use * /delete does. And it is exactly what I don't want
to do.
We have users manually mapped because that is the way it thank you for your
thought full insight on logon scripts, hmmm, but I thought that was what my
initial request stated;
"I
Title: Message
What's
a logon script?
-Original Message-From: Blake R. Fowkes
[mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 12:00
PMTo: NT System Admin IssuesSubject: RE: Changing
Mappings after server re-name
My only question here is why in the worl
TED]>
To: "NT System Admin Issues" <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 4:35 AM
Subject: RE: Changing Mappings after server re-name
> That won't work because I will want multiple drives with different drive
> letter assignments un-mapped and remapped to t
Title: RE: Changing Mappings after server re-name
I think what they're trying to say is it's difficult to query each machine, get the shares, and then replace them. You might end up spending more time trying to create a sophisticated script than just trying to standardize using, f
ok @
the great ideas.
hope this helps.
Will
-Original Message-
From: Tom Grabowski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 4:20 PM
To: NT System Admin Issues
Subject: RE: Changing Mappings after server re-name
You have all been a great help.
Yes I know what net use * /dele
Goldoff
Systems Manager
The HoneyBaked Ham Company
678-966-3320
[EMAIL PROTECTED]
-Original Message-
From: Tom Grabowski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 4:20 PM
To: NT System Admin Issues
Subject: RE: Changing Mappings after server re-name
You have all been a great
Program Management
KBR Americas Region
-Original Message-
From: Tom Grabowski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 3:20 PM
To: NT System Admin Issues
Subject: RE: Changing Mappings after server re-name
You have all been a great help.
Yes I know what net use
s not made
on behalf of my employer.
-Original Message-
From: Tom Grabowski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 3:20 PM
To: NT System Admin Issues
Subject: RE: Changing Mappings after server re-name
You have all been a great help.
Yes I know what net use * /delete
e...
-Original Message-
From: Greg Kerr [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 4:10 PM
To: NT System Admin Issues
Subject: Re: Changing Mappings after server re-name
Why not use
Net use E: /del
Net use F: /del
Net use G: /del
.
.
Net use X: /del
Net use Y: /del
Net use Z
Yes, there is.
What OS are the clients using?
==
ASB - http://www.ultratech-llc.com/KB/?File=~MoreInfo.TXT
==
"A neat desk is a sign of a sick mind."
~~~
The following will work in NT4 and Win2K (the FOR line long, and ends with %%w)
new server name = NEWSERVER
old server name = OLDSYSTEM
@ECHO OFF
set SERVER=OLDSYSTEM
for /f "eol=c tokens=2,3" %%v in ('net use ^| find /i "%SERVER%"') do CALL :SwapShare
%%v %%w
GOTO :EOF
:SwapShare
set DR
AIL PROTECTED]>
To: "NT System Admin Issues" <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 4:20 PM
Subject: RE: Changing Mappings after server re-name
> You have all been a great help.
> Yes I know what net use * /delete does. And it is exactly what I don't
Very doable, but its going to be a bit of a pain.
You can issue 'net use' without any arguments to get the list of current
mapped drives, then parse that for the specific server and do a net use x:
/d and then remap it.
Alternately, this is a bit easier with VBScript and Windows Scripting host,
18 matches
Mail list logo