- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-08-2024 12:28 PM
Running PAM 12.2.
Trying to run the Accounts Onboard Utility located at https://github.com/cyberark/epv-api-scripts/tree/main/Account%20Onboard%20Utility always produces a number of errors, and the script does not run. I have confirmed my LocalMachine, CurrentUser and MachinePolicy execution policies are all Unrestricted. I get these errors whether I try to launch the script as part of a full command or by itself without any switches.
The first set of errors are below. Has anyone else seen this issue?
At C:\cyberark\Accounts_Onboard_Utility.ps1:41 char:60
+ ... script type="application/json" id="client-env">{"locale":"en","featur ...
+ ~~~~~
Unexpected token ':"en"' in expression or statement.
At C:\cyberark\Accounts_Onboard_Utility.ps1:41 char:65
+ ... cript type="application/json" id="client-env">{"locale":"en","feature ...
+ ~
Missing argument in parameter list.
At C:\cyberark\Accounts_Onboard_Utility.ps1:41 char:615
+ ... key_shortcuts_in_inputs","custom_inp","remove_child_patch"]}</script>
+ ~
The '<' operator is reserved for future use.
03-19-2024 12:05 PM
I have the solution, supplied by the BizDev team ([email protected]):
"Make sure you download it as raw from Github. It looks like some encoding issue with the character if you copy and paste it.
That is the down arrow icon ."
Browsed to the .ps1 file page in Github (https://github.com/cyberark/epv-api-scripts/blob/main/Account%20Onboard%20Utility/Accounts_Onboard_Utility.ps1) and downloaded the PS file again via the download button (down arrow icon). After that the script could be launched.
03-09-2024 08:16 PM
Hi @Shawn Metcalf
The errors mention unexpected tokens related to script tags (”<script type=“application/json” … >”). Please
verify that these tags are properly formatted and not causing syntax errors within the PowerShell script.
Please also verify the content of the script, especially around the line where the errors occur (line 41 in this case). Verify that there are no syntax errors or unexpected characters.
Hope it helps !
03-11-2024 12:49 PM
As far as I've been able to determine, the syntax is correct.
03-19-2024 12:05 PM
I have the solution, supplied by the BizDev team ([email protected]):
"Make sure you download it as raw from Github. It looks like some encoding issue with the character if you copy and paste it.
That is the down arrow icon ."
Browsed to the .ps1 file page in Github (https://github.com/cyberark/epv-api-scripts/blob/main/Account%20Onboard%20Utility/Accounts_Onboard_Utility.ps1) and downloaded the PS file again via the download button (down arrow icon). After that the script could be launched.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

