FSLogix / Invoke-FslShrinkDisk

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

Cannot run tool with Constrained Language mode #56

Closed brmcmill closed 2 years ago

brmcmill commented 2 years ago

Ran into this issue while trying to run this tool in ConstrainedLanguage mode.

image

JimMoyle commented 2 years ago

Hi, I've never tested constrained language mode and hence don't support it.

However it looks like you are using 5.1 not PowerShell 7.x. I use a different method for multi threading which might not cause the same issues.

brmcmill commented 2 years ago

Thanks @JimMoyle! I'll test out 7.x in this situation and follow up! Appreciate the response.

brmcmill commented 2 years ago

Hey @JimMoyle -- looks like this should work with PowerShell v7. Tested it out in my lab on a few containers. Apologies for the delay on following up! I'll close this.