Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Find All the Drives Mapped to a Share and Remap ThemContent of Find All the Drives Mapped to a Share and Remap Them.vbsMD5 Hash: 07FC480D417CED7CD432619011EB4F1F |
||
Set objNetwork = CreateObject("Wscript.Network")
Set colDrives = objNetwork.EnumNetworkDrives For i = 0 to colDrives.Count-1 Step 2 If colDrives.Item(i + 1) = "\\server1\share" Then strDriveLetter = colDrives.Item(i) objNetwork.RemoveNetworkDrive strDriveLetter objNetwork.MapNetworkDrive strDriveLetter, "\\server2\share" End If Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |