Skip to content

$using: statements require lower case #3

@santisq

Description

@santisq

Whenever using a $using: statement without lower case variable the function will fail stating:

InvalidOperation: A Using variable cannot be retrieved. A Using variable can be used only with Invoke-Command, Start-Job, or InlineScript in the script workflow. When it is used with Invoke-Command, the Using variable is valid only if the script block is invoked on a remote computer.

Passing arguments via the stop-parsing token ( --% ) requires that all Keys are lower case.

Changing Line #157 from:

$key = [Convert]::ToBase64String([Encoding]::Unicode.GetBytes($varText))

To:

$key = [Convert]::ToBase64String([Encoding]::Unicode.GetBytes($varText.ToLower()))

Should fix this issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions