Resize-UserProfileDisk icon indicating copy to clipboard operation
Resize-UserProfileDisk copied to clipboard

After running this against a single vhdx file, the disk remained mounted at the end of the procedure

Open blynch71 opened this issue 4 years ago • 2 comments

After running this against a single vhdx file, the disk remained mounted at the end of the procedure.

Interestingly, if I run this against a folder I don't have the issue.

Any thoughts on how to resolve this??

blynch71 avatar Apr 09 '20 02:04 blynch71

I have tested this and it seems that the disk does not always dismount in the proper way. I will check this out, thanks for the comment mate

T13nn3s avatar Apr 10 '20 16:04 T13nn3s

Hello, we have changed line 434 of the Resize-UserProfileDisk to $mountedupd = Get-Volume | Where-Object {($.filesystemlabel -like 'Profile*') -or ($.filesystemlabel -like 'O365*')} because we found out that the line 434 is looking for a disk called "User Disk" that did not exists. This resolved the issue of not unmounting the VHDX drives.

k1l0kn4113r avatar Dec 08 '20 12:12 k1l0kn4113r