Need logoff details

  • Thread starter Thread starter Yogi
  • Start date Start date
Y

Yogi

Dear Friends,
Thanks for your constant co-operation everytime I needed. Today, I need
some more help from you & I expect I will get success in the task
assigned to me.

I want to know what happens when a user logs off from his computer.
I need to create a script which is dependent on logoff process.

Thanks.
 
Yogi said:
Dear Friends,
Thanks for your constant co-operation everytime I needed. Today, I need
some more help from you & I expect I will get success in the task
assigned to me.

I want to know what happens when a user logs off from his computer.
I need to create a script which is dependent on logoff process.

Thanks.

Is this a study assignment? If so, who will get the credits
for the answer?
 
Local Computer Policy\Computer Configuration\Windows Settings\Scripts
(Startup/Shutdown)

Local Computer Policy\User Configuration\Windows Settings\Scripts
(Logon/Logoff)

%windir%\system32\GroupPolicy\Machine\Scripts\Shutdown

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Not study assignment. It's a task assigned to me in the office to
control the logoff procedure. I want to create a script which will
confirm the user whether he/she has filled the timesheet or now. If
user will click on Yes, then only he/she is allowed to logoff
otherwise, if user clicks No, the system should return to previously
logged on state. So, I want to hold the logoff process for a while till
the user clicks Yes or No. Hope u understand it.
 
Wesley, thanks for this. I can run any script at the time user logs
off. But, I want to stop the user from logoff if he/she clicks on No.
Please suggest how to deny user from logoff.
 
You need a program not a script. All programs get told a shutdown/logoff is pending and do they approve. You see this with Word if you try to logoff with an unsaved file, it asks if you want to save or not or cancel the logoff.
 
Yogi said:
Wesley, thanks for this. I can run any script at the time user logs
off. But, I want to stop the user from logoff if he/she clicks on No.
Please suggest how to deny user from logoff.

You could explore this path:
- Change the system policy so that users cannot log off
in the usual way.
- Give them a shortcut on the desktop to log off.
Arrange it so that it invokes your script.
- If the user clicks No then he is returned to the desktop.
If he clicks Yes then you launch shutdown.exe -L.
I haven't tried the above - it's just a thought.

While the above solution may work, it might backfire
with some users: They are likely to pull the plug . . .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top