Skip to content

Update to support troublesome special charcters in Service names #4

@ctenersight

Description

@ctenersight

$ReturnString = & $ServiceControlCmd.Definition $Arguments

I had to change this to:

            $Command = "$($ServiceControlCmd.Definition) $Arguments"
            $ReturnString = Invoke-Expression $Command

This resolved an issue I had when working with a service that contained square brackets [ ] in the name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions