Hi there!
When I'm trying to Restore an existing Conf File with the following Line in FCConfig:
.\FCConfig.exe -m all -f 'C:\Temp\Config.conf' -o importvpn -i 1
I get the line: "hr 1 80070002 ffffffff" and nothing does happening.
I'm using Powershell to execute the command
Does anyone have a clue about that?
EDIT:
CMD shows the same error // Also when i'm trying to export the recent settings
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.
Created on 02-25-2022 11:17 AM Edited on 03-02-2022 05:30 AM
Hello @flurian1999 ,
Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.
Thanks
Hi Flurian,
Can you please try it like this:
You need to run the command from the c:\program files\fortinet\forticlient directory.
FCConfig -m all -f <filename> -o import -i 1 -p <encrypted password>
Best regards,
Pedro
Hi,
Can you please specify how the config that you are trying to import is generated?
Can you try to run Powershell or CMD as admin and test the same issue?
Here you can see more about this error:
Kind regards
Does someone have any news about this issue?
I'm trying to automatize the configuration of my Forticlients via fcconfig, but there is no way to get it working properly, simply because it seems that the parameter -o importvpn does not work at all. If you use it, the forticlient show a pop-up saying "Invalid parameter".
IF you use -o import it runs normally, but you need to be an administrator do do that. That way is impossible to deploy via SCCM, GPO or something like that, because you need the command to be run on the user session. Therefore, the user needs to has permission to do so.
Any hint would be appreciated.
Thanks in advance.
Hi Juquinha, did you ever found a solution for that? I'm doing some tests and sometimes it does work, and sometimes it doesn't. So surething there is something blocking the execution, but we've not been able to find anything yet... :( That is so frustrating...
Hey, Bro!
We workarounded it by importing the config we needed via GPO pushing the necessary registry keys.
Hope this helps!
Yes. First of all, FortiClient console must be closed.
-o options must by just "import" or "export". "importvpn" and "exportvpn" do not work.
password in newer versions is mandatory.
proper commands are:
FCConfig -m vpn -f [filename] -o export -i 1 -p [password]
FCConfig -m vpn -f [filename] -o import -i 1 -p [password]
FCConfig -m all -f [filename] -o export -i 1 -p [password]
FCConfig -m all -f [filename] -o import -i 1 -p [password]
[filename] = clear path to file, like c:\temp\vpnconfig.config
[password] = clear text password without any quotes
I hope it helped
Hi,
Can you refer FortiClient 7.0.2 XML Reference Guide:
"Fortinet provides administrators the ability to import and export configurations via the CLI."
Yes to use this options it is require admin permissions.
Thanks
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 |
---|---|
1712 | |
1093 | |
752 | |
447 | |
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.