Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Mounting a VHD File for Personal Storage

$
0
0

Hello - I have an idea but I have no clue where to start with this.

I would like to write a power shell script that runs each time a user logs in to a Terminal Server.

During the logon process, the script will locate a VHD file called %USERNAME%.vhd, which is stored on a remote SMB share.

It will then mount that VHD file to a folder location on a remote "Home Drive Server", for example C:\Mount\%USERNAME%.

It will then share out the folder on the "Home Drive Server" as %USERNAME%$.

Finally, it will map the \\HOMEDRIVESERVER\USERNAME$ as a drive letter Q: within the users terminal server session.

The user will then use that VHD as an isolated personal document store.

Any help, tips or advice on how I might achieve this would be awesome. I will ask some in house power shell experts as well, but thought I'd post here on the off chance someone might have an example.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>