Is there a default folder created/attached automatically for each User opening a session ?

larratP

Bit poster
The purpose is to launch an application that needs a file as parameter.
And this file must be unique per user, so it must be located in a dedicated folder per user or session.
Can we do that ?
Thks
 
Dear larratP,
Usually, user's home folder is leveraged to achieve such a task task.
14292-884046d52431b272fd83ddd21df3bcb2.jpg

Environment variables %HOMEDRIVE% or %HOMEPATH% can be used then. HOMESHARE is used instead of HOMEDRIVE if the home directory uses UNC paths.
 

Attachments

  • home folder.png
    home folder.png
    8.1 KB · Views: 7
Thank you Alexey for your prompt reply.
I'm not sure to understand everything.
I want this "user home folder" to be located on the RAS infrastructure (not on the user's PC).
And it must be unique per user and accessible through a variable in the script we publish the application with.
Could you provide me a more detailed example of your solution?
Rgds
 
Home folder is the property of the user account. You can create a network share for all your users and keep their folder in single place (using DFS is appreciated).
Example of step-by-step guide https://www.faqforge.com/windows-se...ctory-domain-services-windows-server-2012-r2/ - you can simply use DFS based folder with appropriate permissions (this give you redundancy) instead of the server local drive

More details about home folder read in https://support.microsoft.com/en-us/help/816313/how-to-assign-a-home-folder-to-a-user
DFS step-by-step guide is here https://mizitechinfo.wordpress.com/2013/08/21/step-by-step-deploy-dfs-in-windows-server-2012-r2/
 
Back
Top