vizz Posted October 14, 2007 Posted October 14, 2007 (edited) Hello.I was wondering if anyone have made some nice HTA or Script which can validate a typed user name/password to a domain or share on a server on a PE system.I have done a VBscript which can but it is kind of primitive and the password is for now showed while typing.Best RegardsPeter.' Made by ptr 13.10.07Dim objNetwork, PassSet objNetwork = WScript.CreateObject("WScript.Network")Pass = 0str1LocalDrive = "G:"str1RemoteShare = "\\servername\d$"str2LocalDrive = "I:"str2RemoteShare = "\\servername\e$"strPer = "FALSE"Do While pass = 0 On Error Resume Next strUsr = "servername\" + InputBox("Type UserID") strPas = InputBox("Type Password") objNetwork.MapNetworkDrive str1LocalDrive, str1RemoteShare, strPer, strUsr, strPas objNetwork.MapNetworkDrive str2LocalDrive, str2RemoteShare, strPer, strUsr, strPas if err then Wscript.Echo "Wrong username/Password" pass = 0 else Wscript.Echo "gogogo" pass = 1 end if loop Wscript.Echo "continue" Edited October 14, 2007 by vizz
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now