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
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
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.
Hello,
I have found the following solution in order to stop Forticlient service for a script or other needs in cmd :
So at beginning of your upgrade script on PC or as cmd (with admin rights) -
sc config FA_Scheduler start=disabled && TASKKILL /F /IM scheduler.exe /T
(it will disable the auto startup of FortiClient VPN Service Scheduler and kill the process)
After the script finishes the update of Forticlient or if you want to relaunch the forticlient in cmd (with admin rights)
sc config FA_Scheduler start=auto && net start Fa_Scheduler
(it will enable again the automatic startup of Forticlient VPN Service Scheduler and start the service again)
This solution was tested with forticlient version 7.2.2, but it should work for other versions, just replace FA_Scheduler and corresponding executable for the service scheduler of forticlient
Regards,
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1707 | |
1093 | |
752 | |
446 | |
231 |
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 2024 Fortinet, Inc. All Rights Reserved.