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.
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.