Allow running live scripts in debug mode

This commit is contained in:
Manuel Thalmann 2024-08-16 15:21:41 +02:00
parent 1701213a77
commit c5bb953dc0
2 changed files with 39 additions and 0 deletions
scripts/Common/Scripts

View file

@ -280,6 +280,14 @@ $null = New-Module {
Get-Config "valhalla.software.$Name";
}
<#
.SYNOPSIS
Checks whether the running system is a QEMU virtual machine.
#>
function Test-Qemu {
((Get-WmiObject win32_computersystem).Manufacturer) -eq "QEMU";
}
<#
.SYNOPSIS
Checks whether the current user is the setup user.