Just looking for some direction on how to run a powershell script in Itarian. It looks like it needs to be converted to a .json file? Not sure how to do that. Any guidance would be appreciated.
I would like to create this so I can run it from the Itarain portal and not have to remote into the machine to run it.
Hi @nitsuj21,
Please run this script prepared by our script developers and provide your feedback
https://scripts.itarian.com/frontend/web/topic/run-powershell-script
Please reach us if you have any other issues.
Kind Regards,
PremJK
Hi @nitsuj21,
Can you please share the PowerShell script you are trying to run, so that we can check the same in our back end.
Kind Regards,
PremJK
Hi,
I do have a problem using the script you mentionned.
I copied my powershell script with in the section but when launched I have the following error : "
Au caractre C:\Windows\TEMP\powershell_file.ps1:81 : 78 + … ([string]::Format(“ERROR: File {0} does not exist!”, $UpdaterBinary)) + ~~~~~~~~~~~~~~~~~~~ Le terminateur " est manquant dans la chane. Au caractre C:\Windows\TEMP\powershell_file.ps1:33 : 10 + else { + ~ Accolade fermante } manquante dans le bloc d’instruction ou dfinition du type manquante. Au caractre C:\Windows\TEMP\powershell_file.ps1:26 : 28 + Function CheckIfElevated() { + ~ Accolade fermante } manquante dans le bloc d’instruction ou dfinition du type manquante. + CategoryInfo : ParserError: ( [], ParseException + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString"
Please be aware that whe I use my script manually, it works.
The script is this one :
https://heresjaken.com/install-windows-10-upgrade-through-powershell-using-windows-update-assistant/
It’s updating windows time silently and works great.
Thanks for your help.
Hi @nbruneau,
Thanks for reporting the issue. We will share this with our script developer team and update you on the findings.
Kind Regards,
PremJK