I'm trying to find some example code on how to authenticate to a server, or domain using VBScripting. Does anyone have any sample code they could donate? Thanks
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
You will need to use ADSI for this, but first I have a question. Is the authentication being done from a web application like an ASP page?
Answered 05/11/2004 by: Aaron
Senior Yellow Belt

Please log in to comment
0
Actually this is going to be for a file copy function. I need to authenticate to \\server\shared prior to the file copy. I can do this with a batch file, but I want to get away from those and start using vbscripting. This is going to be done using a GPO login script (machine). Hope this info is a little more clear. Thanks for the response.
Answered 05/11/2004 by: lldan
Senior Yellow Belt

Please log in to comment
0
Here's a simple script I wrote for a user to connect and it set's the drive letter at W:


'***********Start Script*****

Fulluser="Tom"
PWD="password"

Set objNetwork = Wscript.CreateObject("Wscript.Network")
Objnetwork.mapnetworkdrive "W:", "\\lsp7srv1\wanshare$",, Fulluser, PWD

'***********End Script*****


Hope it helps.
Answered 05/19/2004 by: TMAC
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity