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