Easily create user folder shares in Windows

Here is a short one-liner to run in a Command Prompt to share out folders for mapping your users’ home folders. The command assumes your user folders have the same name as your users’ login names:

Just replace “D:\Users” and “DOMAINNAME” with values appropriate to your environment.