Check mapped drive on another computer

To obtain all the map drive in the computer I would physically go to that computer run net use  > mapping.txt,  Then I would copy or print out the txt file.

Today I recive a task to check all the mapping drive for 200 computers. Can I achive this  remotely?
I have local administrator to all this 200 computer but i do not have domain administrator right.

Is there a way to achive this without installing a third party program in those client?

There is no firewall or proxy server.
The network in internal network which i could ping and they are all on the same segment.






JamesekaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

snagsy1980Commented:
it will be part of their user profile NTUSER.DAT on the server or if you have set it up using a group policy it should be generic for all users in a peraticular section
0
JamesekaAuthor Commented:
I do not have right to the server.
You mean I can map to the user c: \\computername\c$ and copy ntuser.dat to retive the information.

The implementation is also not a standard group policy so i need to manually complie the information manually

Is there any administrator tools that I can install in my XP professional computer ,
or something like netsh command that I can query the information remotelly
0
snagsy1980Commented:
you need domain admin rights to be able to automate this kind of procedure
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

JamesekaAuthor Commented:
This is not what I am look for as stated on the initial question.
0
johnb6767Commented:
I am no a scripter, but Mapped drives are stored in the registry (user created mappings, not login script based mappings), under HKEY_USERS\{SID}\Network, and HKEY_CURRENT_USER\Network. Maybe someone can assist in creating a script for this?
0
JamesekaAuthor Commented:
Will do some research in the registry key.
If can find the answer will award some point for speed up my research process.

Mean time hopfully someone can provide me a more direct answer to this problem.
0
JamesekaAuthor Commented:
HI john
Open the remotelly computer can only see hkey_users and hkey_local machine.
Cannot open hkey_local machine.
Did a search on hkey_users cannot find any usefully values.
The solution did not work.
0
sr75Commented:
I am sorry I don't have time to write and test a script for you, but I can point you in the right direction.

Using VBSCripting you should be able to use WMI and an array of computer names to get the information.  I believe the WMI property is win32_logicaldisk.  Still you need to have root access to each system (I am not sure if local admin cuts it, domain admin most definately does).  

What I would do is create a list of systems, one on each line) of a text file.  Then create some logic that "splits" the readall into an array.  Then for each element of the array I would collect a list of their drives using win32_LogicalDisk's DriveType property (a "4" means it is a network drive).

Here is a link to the msdn info on Win32_LogicalDisk: http://msdn2.microsoft.com/en-us/library/aa394173(VS.85).aspx
0
JamesekaAuthor Commented:
Hi sr75
Seem like the only way is to write script which I find it quite hard
Just leave this question open hopefully got a easy way to perform this task.
Thanks for you suggestion
0
sr75Commented:
It really isn't that hard.  Here is a script I have used in the past to collect all the mapped drives and store them locally on the system.   You can make some simple adjustments to have them save it to a network share and run it as a logon script.   It would only take a little more complex scripting to (using an array) to actually turn it into something you can run from your system and probe the rest of the network.
On Error Resume Next
 
strComputer = "."
 
 
arrDriveType = array("Unknown",_
		     "No Root Directory",_
		     "Removable Disk",_
		     "Local Disk",_
		     "Network Drive",_
		     "Compact Disk",_
		     "RAM Disk")
 
set WMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
set colDisks = WMI.ExecQuery("Select * from Win32_LogicalDisk")
 
For Each Disk in ColDisks
	strType = arrDriveType(Disk.DriveType)
	strID = Disk.DeviceID
	strSys = Disk.SystemName
 
	If strType = "Network Drive" then
		strPath = Disk.ProviderName
		List = List & "   " & strID & vbtab & vbtab & strPath & vbcrlf
	End If
Next
 
strHeader = "A List of Mapped Drives" & vbcrlf & vbcrlf &  _
	"Drive Letter" & vbtab & "Share Path" & vbcrlf & _
	"------------------------------------" & vbcrlf 
 
List = StrHeader & List 
 
func_CreateDoc(List)
 
 
'================================
'     Document Mapped Drives
'================================
Function func_CreateDoc(List)
 
	Set FSO = CreateObject("Scripting.FileSystemObject")
 
	strFolder = "C:\ScriptLogs" 
 
	If FSO.FolderExists(strFolder) = false then
		CLog = FSO.CreateFolder(strFolder)
	End If
 
	ShareFile =  strFolder & "\MappedDrives.txt"
 
	Set LogFile = FSO.OpenTextFile(ShareFile, 2, True)
		Logfile.Write List
	LogFile.Close
 
End Function

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JamesekaAuthor Commented:
With this strructure it should provide me some clue to work on
Thanks
0
JamesekaAuthor Commented:
Hi sr75
Is a quite long since I complie a code. Always use third party program.
Can I ask how you complie this code so I can run it.
If I can compile it i could try with the differnt object class.
0
sr75Commented:
there is no compiling.  Copy and paste it into notepad and save it with the .vbs extension.  It will run like a dos batch script does.
0
JamesekaAuthor Commented:
ok thanks again
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.