fix service restart command
This commit is contained in:
@@ -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,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'
|
||||||
Reference in New Issue
Block a user