File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ func (d *Driver) Create() error {
273
273
func (d * Driver ) chooseVirtualSwitch () (string , error ) {
274
274
if d .VSwitch == "" {
275
275
// Default to the first external switche and in the process avoid DockerNAT
276
- stdout , err := cmdOut ("(Hyper-V\\ Get-VMSwitch -SwitchType External).Name" )
276
+ stdout , err := cmdOut ("[Console]::OutputEncoding = [Text.Encoding]::UTF8; (Hyper-V\\ Get-VMSwitch -SwitchType External).Name" )
277
277
if err != nil {
278
278
return "" , err
279
279
}
@@ -287,7 +287,7 @@ func (d *Driver) chooseVirtualSwitch() (string, error) {
287
287
return switches [0 ], nil
288
288
}
289
289
290
- stdout , err := cmdOut ("(Hyper-V\\ Get-VMSwitch).Name" )
290
+ stdout , err := cmdOut ("[Console]::OutputEncoding = [Text.Encoding]::UTF8; (Hyper-V\\ Get-VMSwitch).Name" )
291
291
if err != nil {
292
292
return "" , err
293
293
}
You can’t perform that action at this time.
0 commit comments