Sign in with
Sign up | Sign in
Your question
Solved

Network Drive Mapping Script

Tags:
  • VBScript
  • Mapping
  • Network Drive
  • Email
  • Business Computing
Last response: in Business Computing
Share
August 15, 2013 6:22:23 AM

I'm trying to write a drive mapping script that I can email out and tell my users to just click and forget about it. My issue is that I can't seem to make it persistent as I'm a relative noob. What I have is thus(without a persistent line, works until first logoff/restart)

Set net = WScript.CreateObject("Wscript.Network")
net.MapNetworkDrive "x:", "\\servername\sharename"
Set net = Nothing

Ideas?

More about : network drive mapping script

August 15, 2013 6:55:16 PM

Have you tried adding "/persistent:yes" to your script?
m
0
l
August 16, 2013 5:58:40 AM

Yes, but I'm not sure where to add it as I have almost no clue what I'm doing, so of course it doesn't work haha
m
0
l

Best solution

August 16, 2013 6:34:18 AM

It should be after net.MapNetworkDrive "x:", "\\servername\sharename".
Share
!