Jump to content

call a script upon every login and logout event - windows xp


blm14
 Share

Recommended Posts

I am using software called pGina to authenticate against SSH for a windows XP box. If the user passes authentication and they have no profile yet on the machine, a new profile is created for them. I want to be able to call a .bat file each time ANY user logs in or out of the machine. This bat file will ultimately store some information in a nice database housed on another machine, but I want to know to accomplish the calling-a-bat-file-at-login-and-logout for all users problem first... Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

This would be done through a group policy.

to get to the GPO editor:

NOTE: You must be logged on to the computer using an account that has administrator privileges in order to use Group Policy Editor.

1. Click Start, and then click Run.

2. In the Open box, type mmc, and then click OK.

3. On the File menu, click Add/Remove Snap-in.

4. Click Add.

5. Under Available Stand-alone Snap-ins, click Group Policy, and then click Add.

6. The Welcome to the Group Policy Wizard screen pops up, local Computer is default, so just click the Finish button.

7. in the Add or Remove Snap-ins screen click the OK button.

Now that your in the GPO editor go to Local Computer Policy>User Configuration>Windows Settings>Scripts (Logon/Logoff)

Double click the Logon option on the right, and add the bat file for your Logon script

do the same for the Logoff option.

They should run any time a user logs on or off of the machine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy