changed the write-host to write-loghybrid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user