At the start of the login script before any mappings, look at the key
HKEY_CURRENT_USER\Network\ (Win2K machines)

My login script calls another script that does this, the trick is to have a
long enough pause to the login script isn't mapping at the same time you're
collecting data! DUH. Of course getting pretty output took a little work as
well.

LOGIN script calls GETMAPS, then waits for it to finish before continuing.

Reader's Digest version, contents of GETMAPS:

:Loop
ENUMKEY HKEY_CURRENT_USER\Network\ 
If key can't be enumerated AND it's the first pass then write to file "no
local mapping found"
If key can be enumerated then write out mappings
If key can't be enumerated AND it's NOT the first pass exit
goto loop

Dave.

-----Original Message-----
From: Depp, Dennis M. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 13:00 PM
To: NT 2000 Discussions
Subject: RE: Drive mappings


Care to share your solution?

-----Original Message-----
From: Lum, David [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 3:57 PM
To: NT 2000 Discussions
Subject: RE: Drive mappings


Malcolm,

I know my login script mappings, I need to know out of 500+ users who
has a mapping done at their local PC and not at the script level.

I have found the solution - far easier than I thought!

Dave "me feel stupid" Lum - [EMAIL PROTECTED]
Sr. Network Specialist - Textron Financial
503-675-5510


-----Original Message-----
From: Malcolm Reitz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 12:27 PM
To: NT 2000 Discussions
Subject: RE: Drive mappings


David,

My bad - I forgot that the default for "net use" is to enable persistent
drive mappings.

I really don't think there is a way to tell how a drive was mapped. I
have to ask: why don't you know what your logon script maps?

Malcolm

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%

------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to