Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scripts/windows/Run-GuestExhaustive.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#>
[CmdletBinding()]
param(
[Parameter(Mandatory = $false)]
[ValidateSet("win11-drill", "win11-drill-baseline")]
[ValidateNotNullOrEmpty()]
[string]$VMName = "win11-drill",
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
Expand Down Expand Up @@ -64,6 +67,13 @@ param(
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"

if (-not (Get-Module -ListAvailable -Name Hyper-V)) {
throw [System.InvalidOperationException]::new("Hyper-V module is not available")
}
if (-not (Get-VM -Name $VMName -ErrorAction SilentlyContinue)) {
throw [System.IO.FileNotFoundException]::new("VM '$VMName' does not exist")
}

. (Join-Path $PSScriptRoot "Invoke-GuestPsDirectBounded.ps1")

function Normalize-GuestVerifierSha256 {
Expand Down
Loading