Skip to main content
andrejrepka20
New Member
February 25, 2026
Question

Forticlient Cloud EMS connect script

  • February 25, 2026
  • 1 reply
  • 200 views

is there way to create script for Windows machines that would make the station to connect to cloud based EMS?

There are articles about on prem EMS script that uses the IP of the EMS but in our case we have the EMS in Fortinet cloud and we use invitation code to connect. Sometimes it happens that the station disconnects from EMS and we would like to run the script from GPO to autoconnect to the station.

 

https://community.fortinet.com/t5/FortiClient/Technical-Tip-How-to-create-a-script-to-connect-Windows/ta-p/271163

Any help appreciated.

1 reply

funkylicious
SuperUser
SuperUser
February 25, 2026

hi,

have you considered creating a task scheduler via GPO that executes the script every X minutes or such ?

"jack of all trades, master of none"
andrejrepka20
New Member
February 25, 2026

hi, the issue is that the script mentioned in the article is using EMS IP which in our case is not known. On Cloud-based EMS you just put invitation code which probably includes info about our cloud EMS instance and correctly joins the client to EMS.

 

As this is cloud based application there is probably not static IP which i could use in such script.

funkylicious
SuperUser
SuperUser
February 25, 2026

you can decode the invitation which is in base64.

just remove the _ and == from the start and end and you will see the server

"jack of all trades, master of none"