FSLogix / Invoke-FslShrinkDisk

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

Does nothing? #47

Closed sgealbhain closed 3 years ago

sgealbhain commented 3 years ago

Hey guys,

I'd like to use this script, but when I run it, it mounts the VHD then just bombs out with no error. Any ideas?

Thanks

JimMoyle commented 3 years ago

Are these 3 services running? 'defragsvc', 'vds', 'smphost'

JimMoyle commented 3 years ago

Also the script works best when run from a remote machine, try running from a regular Win10 VM

sgealbhain commented 3 years ago

Thanks Jim. Looks like this was related to the Storage Spaces service being disabled. The script seemed to do more this time and the VHD is smaller. Is it normal for the script to provide no output?

JimMoyle commented 3 years ago

All powershell scripts shouldn't produce pipeline output on success. It does produce a log file in your temp folder (you can change the location). You can also create a pipeline object by specifying the -passthru parameter

Jim

On Fri, 10 Sep 2021, 10:41 Stephen, @.***> wrote:

Thanks Jim. Looks like this was related to the Storage Spaces service being disabled. The script seemed to do more this time and the VHD is smaller. Is it normal for the script to provide no output?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FSLogix/Invoke-FslShrinkDisk/issues/47#issuecomment-916773804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE365O6X2HZVXKL6LABPEALUBHHC3ANCNFSM5DSPKTLQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.