changed the write-host to write-loghybrid

This commit is contained in:
2025-07-03 00:27:15 -04:00
parent b7598e86d3
commit d1ead8155a

View File

@@ -530,7 +530,8 @@ $subHtml
$Global:Listener = [System.Net.HttpListener]::new()
$Global:Listener.Prefixes.Add("http://localhost:$Port/")
$Global:Listener.Start()
Write-Host "Listening on http://localhost:$Port/ ..."
Write-LogHybrid "Listening on http://localhost:$Port/" Info Server
try {
while ($Global:Listener.IsListening) {
@@ -1567,8 +1568,7 @@ function Install-DattoRMM {
}
'UI' {
Write-LogHybrid "Launching UI" Info Startup -LogToEvent
Write-Host "Starting ScriptMonkey UI on http://localhost:$Port/" -ForegroundColor Cyan
Write-LogHybrid "Starting ScriptMonkey UI on http://localhost:$Port/" Info Startup
Start-Process "msedge.exe" -ArgumentList "--app=http://localhost:$Port"
Start-Server # blocks until you click Exit
return