Skip to content

Stephen's Space on the Web

This is my space on the internet. I got tired of writing scripts and/or code and then losing them. The code may be 100% mine or I might have found it on the internet.

Recent Comments

  • Alek Wnuk on MIM – System.UnauthorizedAccessException: Access is denied
  • Alek Wnuk on MIM – System.UnauthorizedAccessException: Access is denied
  • FIMTooler on MIM – System.UnauthorizedAccessException: Access is denied
  • FIMTooler on MIM – System.UnauthorizedAccessException: Access is denied
  • ThomasC. on Avaya Backup and Restore on IIS 7.5

Archives

Tags

  • 7
  • 2003
  • 2007
  • active
  • ad
  • air
  • antivirus
  • asp
  • blackberry
  • calendar
  • directory
  • duplicate
  • exchange
  • file
  • fim
  • gmail
  • google
  • gpo
  • ie
  • iis
  • imail
  • knowledgetree
  • logon
  • mac
  • Mcafee
  • microsoft
  • mim
  • netgear
  • office365
  • perl
  • php
  • pop3
  • powershell
  • rdp
  • rsssaver
  • script
  • sophos
  • Uncategorized
  • vbscript
  • virus
  • vmware
  • whatsup
  • whs
  • windows
  • wsus

Tag: map

vbs script map drives

This is a basic vbscript that maps 2 network drives

on error resume next

Set WshNetwork = WScript.CreateObject("WScript.Network")

DriveMapper "z:", "\\vsrpmain\BusApps"
DriveMapper "o:", "\\vsrpmain\common"


Sub DriveMapper(Drive, Share)
WshNetwork.MapNetworkDrive Drive, Share
End Sub
Posted on January 15, 2009February 4, 2011Categories UncategorizedTags drive, map, vbscriptLeave a comment on vbs script map drives
Proudly powered by WordPress