Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
flurian1999
New Contributor

FCConfig will not Backup/Restore configuration (FortiClient 6.4.7)

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

8 REPLIES 8
Anonymous
Not applicable

 

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

pvalente
Staff
Staff

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 

Pedro Valente
ctanev1
Staff
Staff

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:

https://support.microsoft.com/en-us/topic/error-code-0x8100002f-and-or-error-code-0x80070002-when-yo...

 

Kind regards 

 

 

 

Chavdar Tanev
Juquinha
New Contributor

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.

GlOpFortiTeam

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...

Juquinha

Hey, Bro!

 

We workarounded it by importing the config we needed via GPO pushing the necessary registry keys.

 

Hope this helps!

 

KonJarek

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

ctanev1
Staff
Staff

Hi,

 

Can you refer FortiClient 7.0.2 XML Reference Guide:

https://docs.fortinet.com/document/forticlient/7.0.2/xml-reference-guide/10217/backing-up-and-restor...

"Fortinet provides administrators the ability to import and export configurations via the CLI."

Yes to use this options it is require admin permissions.

 

Thanks

 

 

Chavdar Tanev
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors