Hello ,
Im looking for a powershell script to backup the configuration of all my fortigates .i have fortigate 60D and 300D .
any help please ?
Regards,
any idea?
If you have a FortiManager, then you can use a CLI script with "exec backup".
we dont have a Fortimanager this is why im looking for a script
You may want to post into the FortiGate board. This is for FortiManager, the centralized management tool for FortiGates.
without FortiManager you could switch the admin scp feature on
afair:
config system settings
set admin-scp enable
end
or similar.
With that and SSH enabled on the interface you come into your FGT(s) you could get yourself a copy of the running config via scp. I once wrote a c# .net program that did that before we get our FMG...
--
"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
Im looking for powershell script if its possible
There is some Powershell Code-Snipped for doing scp on the internet like here: https://www.nsoftware.com/kb/articles/psserver-scp.rst
--
"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
Hello!
Please take a look at: https://github.com/Nevets82/Posh-FortiGate
Best Regards!
Allan Lago
Security Analist
+55 21 96436-1884
+55 54 99100-0949
this script for 100D fortigate and not for 300D one
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 |
---|---|
1745 | |
1114 | |
760 | |
447 | |
241 |
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 2025 Fortinet, Inc. All Rights Reserved.