The script is available for download from http://gallery.technet.microsoft.com/How-to-automatically-mount-d623ce34. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This PowerShell script sample shows how to automatically mount a VHD at Startup in Windows 8.
When users restart the computer, all mounted VHD files need to be mounted again. This script is to solve this problem.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery