tags:

views:

827

answers:

3

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.

+4  A: 

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

Neall
Ha, was just typing the same. :)
hangy
+1  A: 

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.

Tim Farley
A: 

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.

Mark Brackett