Powershell stuff
I'm testing out Atera for possible use in my ministry. When I am on my test computer and I type "winget list" or "winget upgrade —all " into Powershell it works just fine. When I access the machines Powershell through Atera or I send a script over asking the same thing, it says "winget is not a recognized cmdlet". Anyone know why?
Comments
-
Hello @fred.
I hope you are doing well.
Regarding your issue. The problem happens because there is a limitation with WinGet, as it can't run under the local system account. Atera runs by default under the Local System Account so the limitation will apply to the built-in Powershell module in Atera.
You can try to run winget as a script in Atera, and instead of running the script as System, you can select to run the script as Current user.
https://support.atera.com/hc/en-us/articles/235215188-Create-upload-and-generate-scripts
Please remember that running a script as Current user might also cause you some troubles, as someone needs to be logged in on the device for the script to run. Or you might encounter issues with user permission.1 -
Here is the script i use and it works perfectly running as SYSTEM.
1
Topics
- All Topics
- 40 Getting started
- 24 Read before posting
- 8 Meet and greet
- 219 General
- 59 News and announcements
- Swag
- 1 Roadmap updates
- 68 Resources
- 9 Knowledge Base
- 13 Webinars
- 1 Shared Script Library
- 2 Blog
- 15 Pro Tips
- 26 Got an idea?
- 1 Atera Academy
- 1 ActionAI
- 1 Copilot
- 123 Remote Monitoring and Management
- 77 Remote Monitoring
- 23 Patch Management
- 98 Professional Services Automation
- 61 Helpdesk
- 17 Billing
- 18 Reporting
- 33 Integrations & add-ons
- 19 Integrations
- 10 Add-ons
- 99 Scripting and automations
- 58 Scripts
- 29 Automations