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.
Thanks
Tim
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
Next
-
-
IDG Tech News
SHARE: 
Similar Threads
-
By techyphil in forum Windows
Replies: 8
Last Post: 16th October 2008, 10:03 PM
-
By cookie_monster in forum Windows
Replies: 4
Last Post: 7th July 2008, 01:44 PM
-
By LeonieCol in forum Windows
Replies: 18
Last Post: 12th March 2008, 03:36 PM
-
By proby1 in forum Windows Vista
Replies: 2
Last Post: 15th November 2007, 10:39 AM
-
By timbo343 in forum Windows
Replies: 4
Last Post: 7th December 2005, 08:09 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules