Hello,
I want to shutdown the FortiClient with a cmd script. So how could I automate the following?
* Right-click on the FortiClient icon on the taskbar and select Shutdown FortiClient.
Best regards
Peter
fortitray.exe --shutdown works however it needs to be executed in the logged-in user's session in with privileges (and the user needs to have local admin rights).
Doing this via SYSTEM(as a script) does not work.
Hello Peter,
You can use a CMD script to automate FortiClient shutdown by following these steps:
Open a text editor, such as Notepad.
Type the following command into the editor:
taskkill /im FortiClient.exe /t /f
The FortiClient process will be abruptly terminated by this command.
Use the.bat extension when saving the file.
Double-clicking the.bat file will start the script and end the FortiClient process.
Hi there, should the below work for the VPN-only client? In practice it closes the console window, but the system tray and background processes persist, preventing uninstallation.
@rtichkule wrote:Hello Peter,
You can use a CMD script to automate FortiClient shutdown by following these steps:
Open a text editor, such as Notepad.
Type the following command into the editor:taskkill /im FortiClient.exe /t /f
The FortiClient process will be abruptly terminated by this command.Use the.bat extension when saving the file.
Double-clicking the.bat file will start the script and end the FortiClient process.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2023 Fortinet, Inc. All Rights Reserved.