diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 779a18a..54ad881 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -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