Issues with MassDeployment and Update Now
Posted: Wed May 01, 2024 9:49 am
Hi
We are having issues with the Mass Deployment and Update Agent commands. I did some investigation and found that the command being sent appears to be wrong.
It is using the -File when referencing an .exe which gives this error
PS C:\windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; Start-Process -FilePath 'powershell.exe' -ArgumentList '-file C:\programdata\chocolatey\bin\choco.exe upgrade all -y' -NoNewWindow
PS C:\windows\system32> Processing -File 'C:\programdata\chocolatey\bin\choco.exe' failed because the file does not have a '.ps1' extension. Specify a valid Windows PowerShell script file name, and then try again.
Windows PowerShell the latest version available based on your source(s).
Copyright (C) Microsoft Corporation. All rights reserved.ased on your source(s).
running the below in PS locally works, can this be changed?
PS C:\windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; Start-Process -FilePath 'powershell.exe' -ArgumentList 'C:\programdata\chocolatey\bin\choco.exe upgrade all -y' -NoNewWindow
Thanks
Ryan
We are having issues with the Mass Deployment and Update Agent commands. I did some investigation and found that the command being sent appears to be wrong.
It is using the -File when referencing an .exe which gives this error
PS C:\windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; Start-Process -FilePath 'powershell.exe' -ArgumentList '-file C:\programdata\chocolatey\bin\choco.exe upgrade all -y' -NoNewWindow
PS C:\windows\system32> Processing -File 'C:\programdata\chocolatey\bin\choco.exe' failed because the file does not have a '.ps1' extension. Specify a valid Windows PowerShell script file name, and then try again.
Windows PowerShell the latest version available based on your source(s).
Copyright (C) Microsoft Corporation. All rights reserved.ased on your source(s).
running the below in PS locally works, can this be changed?
PS C:\windows\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; Start-Process -FilePath 'powershell.exe' -ArgumentList 'C:\programdata\chocolatey\bin\choco.exe upgrade all -y' -NoNewWindow
Thanks
Ryan