GPO Shutdown Script Example
The following GPO script stops the service and logs to file
echo net stop BNPagent >> \\<server>\Logs\FortinacShutdown\FortinacShutdown%Computername%.txt
net stop BNPagent >> \\<server>\Logs\FortinacShutdown\FortinacShutdown%Computername%.txt 2>&1
echo Fortinac Shutdown on %Computername% %date% %time%. >> \\<server>\Logs\FortinacShutdown\FortinacShutdown%Computername%.txt
echo ------------------------ >> \\<server>\Logs\FortinacShutdown\FortinacShutdown%Computername%.txt
Place the script here:
Log sample output (FortinacShutdownMyComputer.txt content):
net stop BNPagent
The FortiNAC Persistent Agent Service service is stopping.
The FortiNAC Persistent Agent Service service was stopped successfully.
Fortinac Shutdown on MyComputer <timestamp>
---------------------------