VSS fails with the following error:
Cannot upload guest agent's files to the administrative share [\\xx.xx.xx.xx\ADMIN$].
Cannot create an agent's configuration file. Target folder:
Cannot get GetTempFileName in CLocalTempFileHolder::CLocalTempFileHolder
Win32 error:The directory name is invalid.
Freezing guest operating system
Veeam Guest Agent is not started
[timestamp] Error Cannot install agent.
[timestamp] Error Cannot upload guest agent's files to the administrative share [\\xx.xx.xxx.x\ADMIN$].
The %TEMP% or %TMP% folder is not accessible on the server you need to back up.
To resolve the issue, follow the next steps:
Log on to the server with VSS credentials and run the SET command.
Find lines like the following ones:
Make sure the specified folder exists and that you can perform read/write operations on it.
In addition to user variables, you need to check system variables as well:
Open System Properties, go to the Advanced tab.
Click the Environment Variables button.
Find the System variables section and make sure the TEMP directory name indicated here is valid.