Product: PowerShell Universal Version: 5.5.2
Ive just upgraded our DEV environment to 5.5.2 for some testing and when creating any permissions i get this error in chrome:
Error: System.Text.RegularExpressions.RegexParseException: Invalid pattern ‘automation.scripts.Atlassian\Invoke_JSM_Intune_Import.ps1(.)/(.)’ at offset 30. Unrecognized escape sequence \I.
Ive changed the script name a few times but get the same issue. It prevents PSU from actually loading and i have to manually delete the permissions from the database to get it back
Some extra info. Updating the permission in the database with an extra \ seems to fix the issue:
UPDATE Permissions SET Identifier = ‘automation.scripts.Atlassian\\Invoke_JSM_Azure_Import.ps1/*’ WHERE Id = 16
Thanks for the workaround info. This is definitely a bug and I opened and issue here: [5.5.2] Error Creating Permissions · Issue #4730 · ironmansoftware/powershell-universal · GitHub
Adam Driscoll
PowerShell Expert and Developer at Devolutions