Strip legacy UI and keep headless runtime

This commit is contained in:
2026-04-08 15:35:04 +02:00
parent 8fe71c0078
commit c803a00df7
460 changed files with 628 additions and 502172 deletions

View File

@@ -71,11 +71,11 @@ function Invoke-IntuneHeadlessBatch
Test-AuthParameters -Secret $Secret -Certificate $Certificate
$projectRoot = Get-IntuneManagementProjectRoot
$startScript = Join-Path $projectRoot "Start-IntuneManagement.ps1"
$runtimeModule = Join-Path $projectRoot "Runtime/IntuneManagement.Runtime.psd1"
if(-not (Test-Path $startScript))
if(-not (Test-Path $runtimeModule))
{
throw "Could not find Start-IntuneManagement.ps1 in $projectRoot"
throw "Could not find IntuneManagement.Runtime.psd1 in $projectRoot"
}
$settingsPath = Resolve-HeadlessSettingsPath $SettingsFile
@@ -109,7 +109,8 @@ function Invoke-IntuneHeadlessBatch
$invokeParams.Certificate = $Certificate
}
& $startScript @invokeParams
Import-Module $runtimeModule -Force
Initialize-IntuneManagementRuntime -View "IntuneGraphAPI" @invokeParams
}
finally
{