How to create advanced login script vbs.

Asked By 10 points N/A Posted on -
qa-featured

 

 

 

Hello experts,

How to create advanced login script vbs. I am using visual basic script for my log in form in vb, but suddenly there is some problem about the coding. Can you give me some example codes for log in information? Even just a little information or coding instruction will do. Thank you.

SHARE
Answered By 0 points N/A #175300

How to create advanced login script vbs.

qa-featured

 

Dear Deborah,
Here is a simple code snippet on VB which i have written to create advanced login script on vbs. Below is the code which i think should work:
Dim objNetwork
Set objNetwork = WScript.CreateObject("WScript.Network")
strLocalDrive = "L:"
strRemoteShare = "\servershare_name"
strPer = "FALSE"
strUsr = "username"
strPas = "password"
objNetwork.MapNetworkDrive strLocalDrive, strRemoteShare, strPer, strUsr, strPas
Hope you can work further on it.

Related Questions