diff --git a/plugins/providers/hyperv/scripts/check_hyperv_access.ps1 b/plugins/providers/hyperv/scripts/check_hyperv_access.ps1 index 21e51a25b..13d2dd879 100644 --- a/plugins/providers/hyperv/scripts/check_hyperv_access.ps1 +++ b/plugins/providers/hyperv/scripts/check_hyperv_access.ps1 @@ -7,7 +7,7 @@ param( $check = Check-VagrantHyperVAccess -Path $Path $result = @{ - root_dir = ($Path -split '\\')[0,2] -join '\'; + root_dir = ($Path -split '\\')[0,1] -join '\'; result = $check }