minor update to improve output
This commit is contained in:
@@ -361,7 +361,7 @@ Function Control-Service
|
|||||||
$displayname = """${fullname}"" (${name})"
|
$displayname = """${fullname}"" (${name})"
|
||||||
}
|
}
|
||||||
If ( $service.Status -ne $statuscondition ) {
|
If ( $service.Status -ne $statuscondition ) {
|
||||||
LogMsg " ${verbing} ${displayname}"
|
LogMsg "${verbing} ${displayname}"
|
||||||
Switch ( $verb) {
|
Switch ( $verb) {
|
||||||
'start' {
|
'start' {
|
||||||
Try { Start-Service -Name $name }
|
Try { Start-Service -Name $name }
|
||||||
@@ -373,7 +373,6 @@ Function Control-Service
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Else { LogMsg " The ${displayname} service is already ${verbed}" }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user