Page 1 of 1 1
Topic Options
#23035 - 2002-06-12 07:31 PM Relocated an mapping point from client.
Anonymous
Unregistered


Hi,
I am migrating an NT file server. Because the new server is having a different name from the old one. Now, I am looking into any manual mapping drives from client workstation and redirect them to new server. Do you have any idea where can I look into registry or any subroutine that will help me to work it out ?
Thank for your advise .
Don

Top
#23036 - 2002-06-12 07:38 PM Re: Relocated an mapping point from client.
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
ther is a reg key in hkcu that tracks persistent drive mappings (I believe it is listed in the kix manual also)

HKEY_CURRENT_USER\Network\Persistent

enum the key/values using instr to search/replace the old server name.

The most 'professional'/manageable method is to let those all go away and remap EVERY drive in your logon script.

Make a quick group per share and dump users into it to get them connected to their shares, then sit down and come up with logical/functional groups to make the mappings more efficient

[ 12 June 2002, 19:44: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#23037 - 2002-06-12 07:41 PM Re: Relocated an mapping point from client.
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
this will dump current mappings to a txt file
code:
$destfile="c:\shareddrives-@year-@monthno.txt"

shell '%comspec% /c net use | find /i ":" > c:\@userid-@day-drives.txt'
$q = open(5,"c:\@userid-@day-drives.txt",2)
if $q=0
$line = readline(5)
do
$drive = substr("$line",14,2)
$share = substr("$line",24,26)
$ret=WRITEPROFILESTRING("$destfile", "@userid", "@userid-$drive", "$share")
$line = readline(5)
until @error <> 0 or $line=""
endif
$q = close(5)

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#23038 - 2002-06-17 10:27 AM Re: Relocated an mapping point from client.
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Take also a look at our script mappings.kix which you can find on our site.
It can give you some ideas.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.03 seconds in which 0.014 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org