mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 06:55:52 +03:00
[GH-ISSUE #1450] Cannot add registry key with script, elevate to admin issue? #2849
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2849
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @moose999 on GitHub (Mar 8, 2023).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1450
I need a PowerShell script to add a registry key.
I am using the New-Item PowerShell command.
I keep geting the error "PermissionDenied"
I have tried checking the box "Run As User (Windows only)" against the script, and the currently logged in user is a local admin on the machine, but this has not changed anything.
When I run the script locally in an elevated PowerShell window, all works as expected, so I think the script is fine.
How can I get a PowerShell script to run as / elevate to admin so that it can add registry keys?
Many thanks!