Hi,
You can add user to the administrators with Add-LocalGroupMember
Add-LocalGroupMember -Group "Administrators" -Member "$YourUserName"
But you still have to run powershell as Administrator. If you want to bypass the UAC prompt, the answer is no.
Best Regards,
Ian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.