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
- 41 Getting started
- 25 Read before posting
- 8 Meet and greet
- 237 General
- 64 News and announcements
- 1 Swag
- 1 Roadmap updates
- 79 Resources
- 12 Knowledge Base
- 16 Webinars
- 1 Shared Script Library
- 2 Blog
- 19 Pro Tips
- 27 Got an idea?
- 3 Atera Academy
- 2 ActionAI
- 1 Copilot
- 140 Remote Monitoring and Management
- 84 Remote Monitoring
- 27 Patch Management
- 105 Professional Services Automation
- 64 Helpdesk
- 17 Billing
- 21 Reporting
- 36 Integrations & add-ons
- 20 Integrations
- 10 Add-ons
- 103 Scripting and automations
- 61 Scripts
- 30 Automations