Can i use a different c:\temp folder for each user in Azure Virtual Desktop?

Jaime Ben David 25 Reputation points
2024-04-02T09:28:39.1+00:00

Hi

I am migrating to Azure, and users will connect to the environment using Azure Virtual Desktop.

One of the apps need access to a c:\temp folder. This folder should be different for each user. Does that work that way in Azure Virtual Desktop? What about if it's designed as Multi-session?

Thanks

Jaime

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,841 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2024-04-03T19:01:59.09+00:00

    Thank you again for following up, @Jaime Ben David !

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    I am migrating to Azure, and users will connect to the environment using Azure Virtual Desktop. One of the apps need access to a c:\temp folder. This folder should be different for each user.

    Solution (provided by Jaime Ben David):

    In my case it has to be c:\temp because of a legacy app. So, i'll build a gpo that creates a temp folder for the user profile if it doesn't exist ( i.e c:\users<username>\temp) then build a symbolic link named c:\temp to point to that user's temp folder.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    User's image

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Jaime Ben David 25 Reputation points
    2024-04-02T16:16:17.7133333+00:00

    Thanks, got a good solution from ChatGPT :-)

    In my case it has to be c:\temp because of a legacy app. So, i'll build a gpo that creates a temp folder for the user profile if it doesn't exist ( i.e c:\users<username>\temp) then build a symbolic link named c:\temp to point to that user's temp folder.

    Jaime

    1 person found this answer helpful.

  2. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2024-04-02T16:11:12.07+00:00

    Hello, @Jaime Ben David !

    Can I use different c:\temp folders for each user in Azure Virtual Desktop?

    You cannot use different c:\temp folders for each user in Azure Virtual Desktop (AVD) although you can use a subfolder in either the user's local profile or in %temp%.

    There can only be one folder with the same name on the c:\ drive (temp in this case). You can, however, have each user use their local profile as those are all unique however the path would have to be within that local profile (example: c:\users\"username"\documents\temp or something similar). A similar approach can be used with %temp%.

    The best approach is to see if the app can write to the %userprofile% variable so that it goes to each user's profile (it's against best practices to have users that have access to the C drive in multi-session environments).


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.