#1 Global Leader in Data Resilience

Windows FLR fails with "Failed to create or open file [C:\Windows\system32\config\systemprofile\"

KB ID: 2162
Product: Veeam Backup & Replication | 11 | 12 | 12.1 | 12.2
Published: 2016-09-05
Last Modified: 2023-06-16
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Challenge

When attempting to perform a Guest OS File Level Restore from a Windows Filesystem the mount Backup Browser displays the error:

The system cannot find the path specified.
Failed to create or open file [C:\Windows\system32\config\systemprofile\...\veeamflr-.flat].
Agent failed to process method {Mount.GenericMount}.
error

Log Example to Confirm Applicability

C:\ProgramData\Veeam\Backup\Svc.VeeamMount.log

cli      | ERR |Failed to process {Invoke} command
cli | >> |Duration: [00:00:00.922]
cli | >> |Details:
cli | >> |The system cannot find the path specified.
cli | >> |Failed to create or open file [C:\Windows\system32\config\systemprofile\wefbxn4t.vhm\veeamflr-4022958bbfc4fb3e-0000.flat].
cli | >> |--tr:Error code: 0x00000003
cli | >> |--tr:Failed to mount disks via VeeamFLR.
cli | >> |--tr:Failed mount filesystem for the FSR restore.
cli | >> |Agent failed to process method {Mount.GenericMount}.

Cause

The environment variables for %tmp% and %temp% are missing or not set for the local system (SYSTEM).

Solution

On the machine where the Veeam Backup & Replication Console was launched and the Mount Server assigned to the Repository where the backup files are stored, ensure that the following regitrisy values exist.

Key Location: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment 
Value Name: TMP
Value Type: Expandable String Value
Value Data: %SystemRoot%\TEMP

Key Location: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment 
Value Name: TEMP
Value Type: Expandable String Value 
Value Data: %SystemRoot%\TEMP

Reboot after creating.

PowerShell cmdlet to create registry values:
Note: These powershell cmdlets do not check if the registry values exist or are set to a different value.

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" -Name "TMP" -Value "%SystemRoot%\TEMP" -PropertyType ExpandString -Force
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" -Name "TEMP" -Value "%SystemRoot%\TEMP" -PropertyType ExpandString -Force
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.