How to determine current drive mappings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am changing my file server name. Is there a way I can determine what drive
letters users have and what they are mapping to without having to go to each
computer?
 
If there's a login script for each user in your domain, you can see what
drive/letter is assigned to each computer by looking at the script.
Otherwise, you might find a tool by doing some research on the net, but I
don't know any.
 
You can connect to their registry and navigate to HKEY_Users\NETWORK
and view the drive mappings

Jocko
 
Not sure if this is what you're looking for but this script asks you for
the computer name then returns a list of mapped drives for that computer.

strComputer = InputBox("What is the computer name:")

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colDrives = objWMIService.ExecQuery _
("Select * From Win32_LogicalDisk Where DriveType = 4")

For Each objDrive in colDrives
Wscript.Echo "Drive letter: " & objDrive.DeviceID
Wscript.Echo "Network path: " & objDrive.ProviderName
Next

Jody
 
Back
Top