IP Address change with limited account

2019-08-22 02:41发布

问题:

Here's what I need to do, any ideas would be helpful.

I need to be able to change the Local IP address of a computer programmatically as a limited user in XP. Without giving Admin information to the users. I've played with runas, sanur, and autoit, but all either require giving up the Administrator password or is not extremely reliable.

Again, any ideas would be great.

回答1:

You should probably create a service that has administrative rights and allow limited users to request an IP change from that service.



回答2:

Neall is right, you could do this with a service. You'd need to build & install the service, and create a small client that can be run in limited user mode that would command the service to change the IP.

However, before you go charging down that road, I have to ask: why do you want to change the IP address of the computer? I'm wondering if you arrived at this as a solution for some other problem that might have a different method of resolution.



回答3:

I'd imagine you could simply call LogonUser with admin credentials, and change it from there. That'd require embedding the password in the EXE, of course.



标签: ip-address