|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
"Yogi" <mittalyogesh@gmail.com> wrote in message news:1136205468.476712.55130@g43g2000cwa.googlegro ups.com... > 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? |
|
#3
|
|||
|
|||
|
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\Shut down -- Hope this helps. Let us know. Wes MS-MVP Windows Shell/User In news:1136205468.476712.55130@g43g2000cwa.googlegro ups.com, Yogi <mittalyogesh@gmail.com> hunted and pecked: > 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. |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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.
-- -------------------------------------------------------------------------------------------------- Goodbye Web Diary http://margokingston.typepad.com/har....html#comments ================================================= "Yogi" <mittalyogesh@gmail.com> wrote in message news:1136287722.416103.288950@g14g2000cwa.googlegr oups.com... > 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. > |
|
#7
|
|||
|
|||
|
"Yogi" <mittalyogesh@gmail.com> wrote in message news:1136288810.131206.126260@g43g2000cwa.googlegr oups.com... > 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 . . . |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Customizing Details View | Hobbes01 | Windows XP Customize | 1 | 01-05-2006 06:34 AM |
| Saving folder details on a networked PC | Trevor L. | Windows XP Customize | 0 | 01-05-2006 06:31 AM |
| Saving login details | donbowyer | Windows XP Setup Deployment | 1 | 01-05-2006 06:11 AM |
| Empty Temp folder on LogOff | Michael Tissington | Windows XP General | 6 | 01-05-2006 02:34 AM |
| Internet Explorer will open only https pages | Bill | Windows XP General | 1 | 01-05-2006 02:33 AM |