schtritoff / hyperv-vm-provisioning

Quick provisioning of Linux VM using Hyper-V on Windows
75 stars 28 forks source link

Fix New-HyperVCloudImageVM.ps1 error when using Chinese Regional format #11

Closed kennhung closed 10 months ago

kennhung commented 11 months ago

This PR fixed the problem of using the New-HyperVCloudImageVM.ps1 script with Chinese Regional format. image

When I'm using the script on my computer, I get the following error.

Cannot convert value "十" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte."

Which is caused by the command Get-Date. image