-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I was getting the following error when running the Licensing Monitor script:
At C:\Users\username\Desktop\Licensing\Lockstep - Citrix Licensing Monitor - withlookup.ps1:86 char:19
-
return "Error: $ComputerName: " + $_.Exception.InnerExcep ... -
Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to
~~~~~~~~~~~~~~
delimit the name.
At C:\Users\username\Desktop\Licensing\Lockstep - Citrix Licensing Monitor - withlookup.ps1:88 char:19
-
return "Error: $ComputerName: " + $_.Exception.Message -
Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to
~~~~~~~~~~~~~~
delimit the name.
At C:\Users\username\Desktop\Licensing\Lockstep - Citrix Licensing Monitor - withlookup.ps1:95 char:18
-
return "Error: $ComputerName: $ServiceName not running." -
Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to
~~~~~~~~~~~~~~
delimit the name.- CategoryInfo : ParserError: (:) [], ParseException
- FullyQualifiedErrorId : InvalidVariableReferenceWithDrive
I removed the ":" after each $computername and the script no longer errors out.
Metadata
Metadata
Assignees
Labels
No labels