Changing IP Address without Administrative Privileges

Welcome Forums General PowerShell Q&A Changing IP Address without Administrative Privileges

This topic contains 1 reply, has 2 voices, and was last updated by

1 year, 5 months ago.

  • Author
  • #97367

    Topics: 3
    Replies: 1
    Points: 11
    Rank: Member


    I have a system where standard users need to be able to change the IP address of the wired ethernet connection without granting them administrative privileges. Is there anyway that this can be achieved via Powershell script without coding in the administrative credentials? Changing the IP address seems pretty simple with New-NetIPAddress, however I do not know how to achieve an encrypted run as without freeware. Any guidance would be greatly appreciated.

    Thank you!

  • #97368

    Topics: 13
    Replies: 4872
    Points: 1,843
    Helping HandTeam Member
    Rank: Community Hero

    In theory, I suppose you could set up a constrained endpoint on the machines. That endpoint would RunAs Administrator, and only contain the needed cmdlets. You'd have to remote into that endpoint and run the command, which you could automate in a script easily enough. "Secrets of PowerShell Remoting" covers the endpoint setup bits. It's a little convoluted for a task like that.

    May I ask why you've got users who need to do this? There's obviously a lot of ways for it to go wrong.

The topic ‘Changing IP Address without Administrative Privileges’ is closed to new replies.