Open JimMoyle opened 4 years ago
Although the disk shrinks successfully, due to not identifying the success, the code waits to time out on every disk
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!
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"
Current code only checks for english output