I have a directory with hundreds of Hard Disk Image Files (.vhdx) - each containing user profile directory (C:\Users\xxx). When I click on a file using File Explorer, it is automatically mounted and I can access files inside. I have an issue with recreating the same with a command.
I do not know what is the username with given SID - I just need to modify a single file in each profile.
Example file: E:\profiles\UVHD-S-1-5-21-1614895754-1035525444-839522115-21214.vhdx
I've tried to use net use
, dism
and subst
however I couldn't get any of those to work.