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
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