#104729 - 2003-09-03 09:05 PM
Listing Remote Computer Network Drives
|
Zymurgy
Lurker
Registered: 2003-09-03
Posts: 4
Loc: Charlotte, North Carolina
|
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'General' forum due to lack of script in body]
I have the need to determine the user's mapped network drives.
I can parse Active Directory to get each computer in the enterprise and in turn, need to ascertain the current user's mapped drives.
I have tried WSH & WMI, but neither will provide the information on remote computer drives.
I have searched the UDF's & a large portion of the UBB but cannot find the information to get this going.
I am sure that this has been done, I just am not able to find the script/UDF to do this. Any assistance or suggestions are most welcome. ![[Smile]](images/icons/smile.gif) [ 17. September 2003, 19:11: Message edited by: sealeopard ]
|
|
Top
|
|
|
|
#104731 - 2003-09-03 09:55 PM
Re: Listing Remote Computer Network Drives
|
Chris S.
MM club member
   
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
quote: All mapped drives are listed in: HKEY_CURRENT_USER\Network.
This key actually contains the drives that are persistently mapped. If drives mapped through login script or via direct mapping (i.e. Home Folder) this key will not contain those mappings.
|
|
Top
|
|
|
|
#104734 - 2003-09-08 01:53 PM
Re: Listing Remote Computer Network Drives
|
Zymurgy
Lurker
Registered: 2003-09-03
Posts: 4
Loc: Charlotte, North Carolina
|
Thanks for the help, I used the WMI provider for Logical Disk to parse the user's drives and get a list. I tried the logon script approach, but it slowed the users down enough to complain about logon times, therefore I removed it and went fully remote via WMI.
The only caveat is that the Win32_LogicalDisk will not provide a list of drives that are temporarily disconnected (ie. the user hasn't accessed the drive mapping, and thier connection state is recycled, disconnected). But, I hit at least an 80% success rate.
Tks, Z
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 271 anonymous users online.
|
|
|