Resize-UserProfileDisk
Resize-UserProfileDisk copied to clipboard
Time delay between generating list and performing diskpart
The generation of the DISKPART script, and the when it is actually executed could have a long time delay as defrag and sdelete can take a long time over many VHDXs.
As such it would be possible for DISKPART to attempt to compact UPDs which has since become in use.
Would it be worth doing a second scan after defrag and sdelete are done to and generate the DISKPART commands then?
Thanks for this comment! I mark this comment as an enhancement for the script.
Maybe it is better to directly shrink the vhdx after the vhdx gots defragged? I have run this script against 170+ UPDs (1TB total space) and it takes up to 4 hours to finish.
I think for each disk it should mount it once and run all functions before unmounting it rather than do all defrag then all zero then all compact. Does that make sense?
Get Outlook for iOShttps://aka.ms/o0ukef
From: T13nn3s [email protected] Sent: Friday, April 10, 2020 5:41:39 PM To: T13nn3s/Resize-UserProfileDisk [email protected] Cc: LBXComputers [email protected]; Author [email protected] Subject: Re: [T13nn3s/Resize-UserProfileDisk] Time delay between generating list and performing diskpart (#4)
Thanks for this comment! I mark this comment as an enhancement for the script.
Maybe it is better to directly shrink the vhdx after the vhdx gots defragged? I have run this script against 170+ UPDs (1TB total space) and it takes up to 4 hours to finish.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/T13nn3s/Resize-UserProfileDisk/issues/4#issuecomment-612113528, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AONDC3U2XZHTJCPWYWJEZWLRL5D4HANCNFSM4MD6SDUA.
I’m running it on 1 TB doing defrag and zero fill and it’s taking 9 hours.
Get Outlook for iOShttps://aka.ms/o0ukef
From: T13nn3s [email protected] Sent: Friday, April 10, 2020 5:41:39 PM To: T13nn3s/Resize-UserProfileDisk [email protected] Cc: LBXComputers [email protected]; Author [email protected] Subject: Re: [T13nn3s/Resize-UserProfileDisk] Time delay between generating list and performing diskpart (#4)
Thanks for this comment! I mark this comment as an enhancement for the script.
Maybe it is better to directly shrink the vhdx after the vhdx gots defragged? I have run this script against 170+ UPDs (1TB total space) and it takes up to 4 hours to finish.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/T13nn3s/Resize-UserProfileDisk/issues/4#issuecomment-612113528, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AONDC3U2XZHTJCPWYWJEZWLRL5D4HANCNFSM4MD6SDUA.
Make sense, I will check it out and report back.