Jump to content

Login script

Recommended Posts

I have created a .bat file with the necessary command to run the tniaudit. It runs fine as long as I assign it to a user login script. My problem is that I have users in my domain that do not have login scripts. I would like to assign it to a computer startup script. I have tried to apply it though global policy but it will not run, but as soon as I login with my test account the command runs.


Any help would be appreciated.

Link to comment

There are several issues involved that may cause this to fail.

The first is the fact that some systems (particularly XP and Server 2003) don’t, by default, wait for the network connection to be active before allowing the user to log in. This is causing Group Policy to be applied before the network connection is active. Since the script does not reside on the box, the call to it is failing. Once you set "Machine - Administrative Templates - System - Logon - Always wait for the network at computer startup and logon” to enabled, that should solve this particular issue.

The other issue is minor, but may cause some problems. It turns out for Startup scripts, the first time Group Policy is applied the script will not run due to the associated registry values not being written yet. On the second reboot, and any subsequent ones, the script should run as intended.

Link to comment

Join the conversation

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

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.

  • Create New...