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}.
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: TMPValue Type: Expandable String ValueValue Data: %SystemRoot%\TEMP
Key Location: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment Value Name: TEMPValue Type: Expandable String Value Value Data: %SystemRoot%\TEMPReboot 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.