sageturkey
IS-IT--Management
Newbie to VBS -
I have a simple logon script that I have included in a Custom VPN connection using CMAK. The .vbs script works great when ran stand-alone after the VPN connection is established, but when included in the Custom Connection, even though set to run post-logon, it runs too soon after the VPN connection is established and errors because it can't find the network share. Here's the script:
' VBScript.
Dim net
Set net = CreateObject("WScript.Network"
net.MapNetworkDrive "Z:", "\\server\test","True"
How do I add a 5 second pause to allow the netowrk to fully connect before attempting to map the drive?
Thanks
I have a simple logon script that I have included in a Custom VPN connection using CMAK. The .vbs script works great when ran stand-alone after the VPN connection is established, but when included in the Custom Connection, even though set to run post-logon, it runs too soon after the VPN connection is established and errors because it can't find the network share. Here's the script:
' VBScript.
Dim net
Set net = CreateObject("WScript.Network"
net.MapNetworkDrive "Z:", "\\server\test","True"
How do I add a 5 second pause to allow the netowrk to fully connect before attempting to map the drive?
Thanks