File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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 {
273273func (d * Driver ) chooseVirtualSwitch () (string , error ) {
274274 if d .VSwitch == "" {
275275 // 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" )
277277 if err != nil {
278278 return "" , err
279279 }
@@ -287,7 +287,7 @@ func (d *Driver) chooseVirtualSwitch() (string, error) {
287287 return switches [0 ], nil
288288 }
289289
290- stdout , err := cmdOut ("(Hyper-V\\ Get-VMSwitch).Name" )
290+ stdout , err := cmdOut ("[Console]::OutputEncoding = [Text.Encoding]::UTF8; (Hyper-V\\ Get-VMSwitch).Name" )
291291 if err != nil {
292292 return "" , err
293293 }
You can’t perform that action at this time.
0 commit comments