Skip to main content
flurian1999
New Member
February 23, 2022
Question

FCConfig will not Backup/Restore configuration (FortiClient 6.4.7)

  • February 23, 2022
  • 5 replies
  • 18238 views

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

5 replies

Contributor
February 25, 2022

 

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
March 3, 2022

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 

ctanev1
Staff & Editor
Staff & Editor
March 4, 2022

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-you-back-up-files-in-windows-7-34dbce33-69f0-ee34-c96d-d89c6583b05f

 

Kind regards 

 

 

 

Juquinha
New Member
April 5, 2022

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
Visitor III
December 28, 2022

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
New Member
January 2, 2023

Hey, Bro!

 

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

 

Hope this helps!

 

ctanev1
Staff & Editor
Staff & Editor
December 29, 2022

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-restoring-cli-utility-commands-and-syntax

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

Yes to use this options it is require admin permissions.

 

Thanks