creating a secure logon script

Status
Not open for further replies.

lbduballstrs

Baseband Member
Messages
87
I need to create an executable logon script which stores an administrator username and password. But it needs to be secure so the username and password cannot be seen inside the file. Can that be done and if so does anyone know how to?
Thanks
 
a little more explination

Purpose: I need to send this executable script to users who are not on my domain but use my network resources so we can gain access to their PC's if necessary. I want it so all they have to do is double click the executable but are not able to see the information inside so they won't know the administrator name and password.
 
Here's the code

Set WSHShell = CreateObject("WScript.Shell")
Set WSHNetwork = CreateObject("WScript.Network")
strComputer = WSHNetwork.ComputerName
Set colAccounts = GetObject("WinNT://" & strComputer & "")
Set objUser = colAccounts.Create("user", "(username)"
objUser.SetPassword "(password)"
objUser.SetInfo
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators")
Set objUser2 = GetObject("WinNT://" & strComputer & "/l(username)")
objGroup.Add(objUser2.ADsPath)
 
Status
Not open for further replies.
Back
Top Bottom