IP Address change with limited account

2019-08-22 03:15发布

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.

标签: ip-address
3条回答
趁早两清
2楼-- · 2019-08-22 03:24

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.

查看更多
干净又极端
3楼-- · 2019-08-22 03:28

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

查看更多
迷人小祖宗
4楼-- · 2019-08-22 03:30

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.

查看更多
登录 后发表回答