- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ03-28-2025 07:40 PM
I am hoping to find a solution to the following. I am trying to invoke ADMU from jcagent. For this I am running the 1_ADMU_Collect.ps1 script from within PowerShell (script updated December 11th 2024).
When executing the script, I am getting the following error and am wondering if it is something that can be easily fixed...
Line 42: Unexpected token ':"en"' in expression or statement.
Since I'm trying this for the first time, I am following the instructions on GitHub to the letter. Am I missing something?
Solved! Go to Solution.
- Labels:
-
Device Management - Windows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ03-31-2025 02:05 PM
Hey @darling,
It looks like you've saved the webpage not the script and attempted to run that as a PS1 file. Please make sure you are following the instructions here and are comfortable editing a PowerShell script file before attempting to run this remote migration workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ03-31-2025 02:05 PM
Hey @darling,
It looks like you've saved the webpage not the script and attempted to run that as a PS1 file. Please make sure you are following the instructions here and are comfortable editing a PowerShell script file before attempting to run this remote migration workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ03-31-2025 02:11 PM
OMG. I feel so embarrassed now. I did download the script both raw as well as the actual page... and used the wrong one to execute. Thanks for pointing this out. I have corrected my mistake and will continue the process.

