Permanently mount virtual disk on Windows Server
Solution 1:
It can be done with Task Scheduler:
- Create a new task with trigger “At Startup”
- Add action “Start Program” with program name
powershell.exe
and argumentsMount-VHD -Path “\\server_name\folder\file.vhd”
- In general tab of task check the boxes “Run with highest privileges” and “Run whether user is logged on or not”
- In general tab of task select the user, which is local admin and has read/write access to vhd file.