Thanks Malcolm,

On my Win2K Pro box they show up in the HKEY_CURRENT_USER\Network key as
soon as they're mapped, even if mapped without the "/persistant:yes" switch.

Other ideas? I even created a persistant mapping at my PC and did a registry
search for it, ran the login script for mappings and re-ran the search, and
they showed up in the same places, and correspoding values in "supporting"
keys also come up the same.

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


-----Original Message-----
From: Malcolm Reitz [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 07:01 AM
To: NT 2000 Discussions
Subject: RE: Drive mappings


Running the logon script isn't any different from typing the "net use"
command by hand.

You can see drives that have been mapped using the "/persistent:yes" switch
on the "net use" command, or by checking the "reconnect at logon" box in the
"Map Network Drive" window. These drives will show up as entries in the
registry under the HKEY_CURRENT_USER\Network key. Drives mapped without the
"persistent" option will not appear here.

Malcolm
-----Original Message-----
From: Lum, David [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 8:53 AM
To: NT 2000 Discussions
Subject: RE: Drive mappings

Thanks Chris,

Won't #4 simply return all mapped drives?

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


-----Original Message-----
From: Chris Jordan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 03:50 AM
To: NT 2000 Discussions
Subject: RE: Drive mappings


There is an API that will return that information. This is a snippet of VB
Code that might help. How you turn that into simple script code in KIX or
elsewhere, I am not sure.....

Private Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA"
(ByVal nDrive As String) As Long
Private Sub Form_Load()
    Select Case GetDriveType("C:\")
        Case 2
            Me.Print "Removable drive"
        Case 3
            Me.Print "Drive is Fixed"
        Case Is = 4
            Me.Print "Remote mapped drive"
        Case Is = 5
            Me.Print "Cd-Rom"
        Case Is = 6
            Me.Print "Ram disk"
        Case Else
            Me.Print "Unrecognized"
    End Select
End Sub


-----Original Message-----
From: Lum, David [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2002 20:09
To: NT 2000 Discussions
Subject: Drive mappings


Does any use or know of a utility that will list drive mappings and
differentiate between what is a locally assigned mapping - meaning the
client does the mapping instead of the login script, and a login script
assigned one?

I'm looking for basically a modifed NET USE output, something like this:
F: \\<servername\sharename>
G: \\<servername\sharename>  
I: \\<servername\sharename>  *Locally mapped drive**

------
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