Skip to content
Snippets Groups Projects
Commit dca991d1 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard: Committed by Niko Ehrenfeuchter (adm)
Browse files

Introduce global variable $Me, referring to script name.

Providing the file name without suffix.

Refers to #13
parent 766eac18
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,8 @@ catch {
Exit
}
$Me = $MyInvocation.MyCommand -replace '.ps1'
function Check-ServiceState([string]$ServiceName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment