https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2IxMDQ2IiwiaGFzaCI6Ijg5YzM2MjA4LWYxMzItNDgwMC1iZjJjLTQ5OWU1YjdhNzA3MSJ9
1-800-691-1991 | 9am - 8pm ET
EN

Win32 error: The directory name is invalid.

Challenge


Cause

The %TEMP% or %TMP% folder is not accessible on the server you need to back up.

Solution

To resolve the issue, follow the next steps:
  1. Log on to the server with VSS credentials and run the SET command.

  2. Find lines like the following ones:
    TEMP=C:\DOCUME~1\USER\LOCALS~1\Temp
    TMP=C:\DOCUME~1\USER\LOCALS~1\Temp

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

  1. Open System Properties, go to the Advanced tab.

  2. Click the Environment Variables button.

  3. Find the System variables section and make sure the TEMP directory name indicated here is valid.

User-added image

KB ID:
1046
Product:
Veeam Backup & Replication
Version:
5.x, 6.x
Published:
2011-07-19
Last Modified:
2020-08-13
Please rate how helpful this article was to you:
5 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.

ty icon

Thank you!

We have received your request and our team will reach out to you shortly.

OK

error icon

Oops! Something went wrong.

Please go back try again later.