---
updatedAt: 2025-08-14T13:54:01.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-sight/llms.txt
---

# Mapped Drives Info

```shell VB Script
'This script returns list of mapped drives and saves in text file.

On Error Resume Next
Set objFileToWrite = CreateObject("Scripting.FileSystemObject").OpenTextFile("C:\Users\rmartiro\Desktop\list.txt",2,true)
Set objNetwork = WScript.CreateObject("WScript.Network")
Set colDrives = objNetwork.EnumNetworkDrives
For i = 0 to colDrives.Count-1 Step 2
text = colDrives.Item(i) & vbTab & colDrives.Item (i + 1)
Wscript.Echo text 
 objFileToWrite.WriteLine(text)
Next
objFileToWrite.Close
Set objFileToWrite = Nothing

If err.number <> 0 Then
	WScript.Echo ("Script Check Failed") 
	Wscript.Quit (1001)
	Else
	wscript.Echo ("Successfully Passed")
	wscript.Quit(0) 
End If
```

```json Response Example
{"success":true}
```

# SCRIPT