Can normal user run PowerShell script without admin rights.

Tathagata Bhattacharya 125 Reputation points
2023-09-01T11:59:09.3433333+00:00

One of our user run PowerShell script for his day to day activity. Every time he has to reach support team for Admin credentials.

We could have fix the issue by providing him local admin rights. However, I would like to find out if there any other alternative way to run the script with out providing local admin.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,747 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue 39,021 Reputation points Microsoft Vendor
    2023-09-04T06:40:59.1566667+00:00

    Hi,

    You can try Runas with the /savecred parameter. Runas allows a user to run specific tools and programs with different permissions than the user's current logon provides.

    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc771525(v=ws.11)

    Best Regards,

    Ian Xue


    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.