Startup Script Policy and Script Persistence

B

Benito

I recently created a batch file script that I added to the
group policy startup script list. That group policy was
assigned to an OU only containing my test server.

The script is a simple batch file with a continuous goto
statement that keeps it running. However running this
script via GP it only executes once and does not
continue. I would have run the script as a service but
you cannot 'net start' a batch file as it doesn't respond
to the start request. I've tried a number of ways to run
the script without the need to have a user logged into the
server and seen no sucess. Any ideas here? I thought for
sure that GP would work.

Win2K SP4 - AD based GP
script:
:top
time /t >>log.txt
netstat | find "port#_here" >>log.txt
sleep 60
goto top
 
U

Uncle Stewie

Just off the top of my head...

1) You can schedule this to run using scheduler...
2) there is a utility (exe) that will allow this to run as a service... I
think it was on the 2K Resource Kit...
3) Have someone write a custom service to do this...

Good Luck
 

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

Top