blm14 Posted August 31, 2010 Report Share Posted August 31, 2010 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! Quote Link to comment Share on other sites More sharing options...
Syndrose Posted September 10, 2010 Report Share Posted September 10, 2010 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 scriptdo the same for the Logoff option.They should run any time a user logs on or off of the machine. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.