fix service restart command

This commit is contained in:
2021-05-24 12:15:29 -04:00
parent a579452a3a
commit fe5a2ad113
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -318,6 +318,7 @@ Function Control-Service
$StopCmd = $ArgString -replace ' -Restart ', ' -Stop ' $StopCmd = $ArgString -replace ' -Restart ', ' -Stop '
$StartCmd = $ArgString -replace ' -Restart ', ' -Start ' $StartCmd = $ArgString -replace ' -Restart ', ' -Start '
Invoke-Expression $StopCmd Invoke-Expression $StopCmd
Start-Sleep -Seconds 10
Invoke-Expression $StartCmd Invoke-Expression $StartCmd
Exit Exit
} }
+1 -1
View File
@@ -1,2 +1,2 @@
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1'))) . $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
Control-Service -Restart 'SplashtopRemoteService' Control-Service -Restart -Name 'SplashtopRemoteService'