2018-06-18 22:33:25 +00:00
|
|
|
#Requires -Modules VagrantMessages, VagrantVM
|
|
|
|
|
|
|
|
param(
|
|
|
|
[parameter (Mandatory=$true)]
|
|
|
|
[string] $Path
|
|
|
|
)
|
|
|
|
|
|
|
|
$check = Check-VagrantHyperVAccess -Path $Path
|
|
|
|
$result = @{
|
2018-07-06 23:27:52 +00:00
|
|
|
root_dir = ($Path -split '\\')[0,1] -join '\';
|
2018-06-18 22:33:25 +00:00
|
|
|
result = $check
|
|
|
|
}
|
|
|
|
|
|
|
|
Write-OutputMessage $(ConvertTo-Json $result)
|