Does anyone know if there is a DSC resource for mount points? (handy for SQL Servers). I've requested the feature to be added to xDisk (https://github.com/PowerShell/xStorage/issues/47) but was hoping someone has already created something I could use in the meantime.
I normally used MountVol in vbscripts and batch files to do the work on my SQL servers, but you can also achieve that with WMI code.
As always if you have code to do the job, you can wrap it in a script DSC component and create your own DSC.
Hope it will be added to xStorage as its a good needed addition.
I wrote a custom resource do this for exchange. Just a part of my modified xstorage module. I can share the code if you're interested. Really should get around to setting up git ;). But basically I just have a wrapper function for diskpart, as far as i'm aware there isn't a powershell command to add mount points...could be wrong though.