FSLogix / Invoke-FslShrinkDisk

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

DiskPart output is localised #15

Open JimMoyle opened 4 years ago

JimMoyle commented 4 years ago

Current code only checks for english output

JimMoyle commented 4 years ago

Although the disk shrinks successfully, due to not identifying the success, the code waits to time out on every disk

shaidenschuster commented 4 years ago

Hi Jim, I can report back this issue as our display language was german it was failing all the time when trying to extend the space after cleaning up. I found that you check the diskpart logfile for a specific text in english and could get the script running when changing the display language to english on my system. after that everything works fine. thanks for the effort you put into this script it's amazing!

Jannos-443 commented 3 years ago

Had to change the following part to german too.

old: $diskPartResult -contains 'DiskPart successfully compacted the virtual disk file.' does not match. new: $diskPartResult -contains 'Die Datei für virtuelle Datenträger wurde von DiskPart erfolgreich komprimiert.' does match.

don´t know why but in ISE it´s "Die Datei f�r virtuelle Datentr„ger wurde von DiskPart erfolgreich komprimiert"