IP Address change with limited account

浪尽此生 提交于 2019-12-11 17:50:37

问题


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.



来源:https://stackoverflow.com/questions/192544/ip-address-change-with-limited-account

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!