FSLogix / Invoke-FslShrinkDisk

This script will shrink a FSLogix Disk to its minimum possible size
MIT License
155 stars 55 forks source link

The size of the extent is less than the minimum of 1MB. #52

Open edhmcs opened 2 years ago

edhmcs commented 2 years ago

Afternoon @JimMoyle, hoping you can help.

Looking to your script to assist with reducing the impact of container bloat. Unfortunately, getting the below error:

Get-RunspaceData : Exception calling "EndInvoke" with "1" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Size Not Supported

Extended information: The size of the extent is less than the minimum of 1MB.

Activity ID: {861b16e2-e9d2-4263-a4b9-2ad5e4cb1b82}" At C:\users\admin\Desktop\FSLogix Shrink Disk.ps1:747 char:17 Get-RunspaceData -wait

CategoryInfo : NotSpecified: (:) [Get-RunspaceData], MethodInvocationException FullyQualifiedErrorId : ActionPreferenceStopException,Get-RunspaceData

JimMoyle commented 2 years ago

I've not seen this before, can you tell me a bit more? what is the size of the disk (max and current) was it created by FSLogix or some other method?

edhmcs commented 2 years ago

Good morning Jim,

Many thanks for your quick response.

The disks were created using a script from Christiaan Brinkhoff (https://www.christiaanbrinkhoff.com/2020/02/14/youtube-how-to-migrate-from-upd-to-fslogix-profile-container-profiles-to-windows-virtual-desktop/)

Following your response, I have tested your script with an FSLogix created disk, and I can confirm I do not see the error.

I’ve not had a chance to review the differences between the two disks in order to identify an exact cause, if I get the time to do this I will let you know.

Regards,

Ed From: Jim Moyle @.> Sent: 06 January 2022 20:40 To: FSLogix/Invoke-FslShrinkDisk @.> Cc: Ed Hurrion @.>; Author @.> Subject: Re: [FSLogix/Invoke-FslShrinkDisk] The size of the extent is less than the minimum of 1MB. (Issue #52)

I've not seen this before, can you tell me a bit more? what is the size of the disk (max and current) was it created by FSLogix or some other method?

— Reply to this email directly, view it on GitHubhttps://github.com/FSLogix/Invoke-FslShrinkDisk/issues/52#issuecomment-1006919204, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXF4C2HZIDE4YN4CYBC4T4LUUX4ZPANCNFSM5LMQJ6OQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.**@.>>