vagrant/plugins/providers/hyperv/scripts/check_hyperv_access.ps1

17 lines
359 B
PowerShell

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
#Requires -Modules VagrantMessages, VagrantVM
param(
[parameter (Mandatory=$true)]
[string] $Path
)
$check = Check-VagrantHyperVAccess -Path $Path
$result = @{
root_dir = ($Path -split '\\')[0,1] -join '\';
result = $check
}
Write-OutputMessage $(ConvertTo-Json $result)