How to auto create a folder and map it to network device?

Mingjiang Li 0 Reputation points
2023-12-21T02:38:51.4166667+00:00

Hi,

I want to achieve when a user login Win10 system, and it will auto create a folder with username in a remote server(Windows Server), and the location should be \remoteserver\sharefolder%usrname%. And the folder (\remoteserver\sharefolder) I have already shared.

Then map the share folder as a network device to the VM which user login.

Thanks.

Windows for business Windows Client for IT Pros Directory services Active Directory
Windows for business Windows Server User experience Other
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2023-12-21T09:35:55.49+00:00

    Hi @Mingjiang Li

    Unfortunately, there is no GPO setup that allows you to create a home folder for each user. However, you can configure each user's home folder to create their home folder \remoteserver\sharefolder%usrname% and map it automatically:

    User's image


    Please don't forget to accept helpful answer

    1 person found this answer helpful.

  2. Anonymous
    2023-12-22T05:54:20.44+00:00

    Hello,

    It is possible to achieve the automation you described. But this may need a combination of scripting, Group Policy, and possibly PowerShell. You may visit PowerShell Gallery | Home or GitHub: Let’s build from here · GitHub to check if there's relevant script you need.

    To map the share folder as a network device to the VM which user login, you could use GPO User Configuration -> Preferences -> Windows Settings -> Drive Maps.User's image

    "Drive Maps" within "Windows Settings" allows admin to map network drives for users. It lets you create, modify, or delete mapped network drives on users' computers during logon or when the Group Policy is refreshed.

    Regards,

    Karlie


  3. Stephan van Wyk 0 Reputation points
    2024-09-10T09:50:34.54+00:00

    Below Preferences-Windows settings you can find Folders. There you can create the folder and the mapping will work after that.

    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.