Scripts Thread, Help: Show mapped drives for a remote user in Coding and Web Development; Im trying to get some info on what drives are mapped for users that are currently logged on.
here is ...
10th November 2008, 01:14 PM #1
Help: Show mapped drives for a remote user
Im trying to get some info on what drives are mapped for users that are currently logged on.
here is the script which works fine when im logged in but when i change the STRCOMPUTER = "Name of computer" it dont work.
Can someone help me out please.
strComputer = "."
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
By techyphil in forum Windows
Last Post: 16th October 2008, 10:03 PM
By cookie_monster in forum Windows
Last Post: 7th July 2008, 01:44 PM
By LeonieCol in forum Windows
Last Post: 12th March 2008, 03:36 PM
By proby1 in forum Windows Vista
Last Post: 15th November 2007, 10:39 AM
By timbo343 in forum Windows
Last Post: 7th December 2005, 08:09 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)