Jump to content

Odd Problem


Endo

Recommended Posts

Does anyone know if there is an easy way to detect if a machine was:

1) Rebooted and Logged on (shutdown or reboot state?)

2) Logged off and logged back into without being reboot/shutdown

I cant use Vbscript, if its doable in kix32 then its all good :)

The reason for this is im trying to establish if there is a bug in windows...

We run Terminal servers with citrix yadda yadda.... In our login scripts we have a check for the Clientname variable which is only supposed to be set when you are logged on to a Terminal session.

What I am finding, and I would like to add a check in the logon scripts to get a bigger picture, is that when you first logon after a reboot or shutdown the CLIENTNAME environment variable equals console... Kinda annoying.

Thanks

Link to comment
Share on other sites


Event ID 6005 means the computer has just turned on.

as far as log on and log off. you would have to write your script to parse the security logs for log on events

question for you.. what exactally is this big picture you are talking about. what is it your script is doing or are the log on and restart events just debug information.

What "bug" are you trying to see if it exists?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...