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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log On to System

Status
Not open for further replies.

wvjim

Programmer
Jan 11, 2001
25
0
0
US
I need to be able to automatically log on to the system as the system administrator programatically so that I can perform a process that requires the system to be logged on. After running the required program I would then need to be able to log back off. Both the log on and log off can be run either as a service or from the scheduled tasks.
 
Why don't you just add the process to the startup script?
Are your users set up as local admins on their boxes?

You're asking about how to do something rather dangerous. How will you check if the box is on? You will have "fun" processing the CTRL+ALT+DEL that is setup as a blocker from malicious scripting, and at the point of the CAD I dont think anything else is running. Once you get past the CAD, you will have to wait an undertermined amount of time to ensure the system has fully started up and all your network drives are connected, so you can reference whatever your after. Once you have that verified you have to run your lil' updater. Part of the updaters process may include restarting, which will really fung your process. How will you know your not supposed to start over again? Once your updater has finished you need to log off, and how do you verified you actually logged off? You may wind up leaving someone logged in with Admin rights.

FYI, what if the user has spyware on their box, and you log in as ADMIN and give the spyware full permissions. BAm your network just got holed.


Oh, and by the way, I was trying to be optimistic.

Lodlaiden.


-The answer to your problem may not be the answer to your question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top