Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you pop up the initial network logon form from VBA 1

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
I have a generic very restricted read only userid we use for overnight report automation. Instead of depending on the user to leave their machine logged on with this userid, I would like to logon for them.

Any ideas or suggestions out there? Thanks in advance!

Have a great day!
 
You can put a user id and password for the database in the shortcut to open it...

Just a thought.
--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
I'm not sure I understand your answer correctly. It sounds to me like you might be talking about a password protected database. I'm talking about the initial NT logon screen you get to access the network. How do you reference a shortcut in code?

Thanks for your help!
 
when the computer first turn's on you mean?? I don't think this is the right place for that... Explain exacly what it is you want done and we'll see if we can help...

--James junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
I am talking about the situation when the PC is powered on and you see the initial message about Ctrl+Alt+Delete to Logon. I would like to be able to programmatically logon the restricted account from that point so I don't have to leave it logged on overnight.

Now that I was given permission to have a generic logon for my automation tasks this is not as much of an issue as it was when I needed to leave my PC logged on overnight with my standard userid.

Thanks for your interest and have a great day!
 
You could use the Registry Key for AutoAdminLogon

Open your regedit from Start-Run .
HKEY_LOCAL_MACHNINE
-SOFTWARE
--Microsoft
---Windows NT
----CurrentVersion
-----WinLogon

Add these string values

AutoAdminLogon w/ Value of 1
DefaultUserName w/ Your User Name
DefaultPassword w/ Your Password

if these strings exist already just change the values

- maximum





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top