Script to Change IP - XP Home
My wife's computer runs WP Home SP2 -- I want to have different IP addresses set dependent on who logs in. I am unable to find a way to do it with XP Home. No login options for scripts are available. The netsh commands do not seem to be available either. Anyone have a notion on how I might accomplish the IP setting at login?
Closer to Getting It To Work
Okay -- you're right. Works from the command line. I think something isn't right with the script, however.
From the command prompt it executes the following okay: netsh {enter} interface ip {Enter} set address ...... {Enter}
I can't get the command to work in a script however. I have a batch file that executes "netsh exec <script filename>" -- the script file containing the "set address..." command. Something wrong with the syntax, but can't figure it out...
Original Post:
My wife's computer runs WP Home SP2 -- I want to have different IP addresses set dependent on who logs in. I am unable to find a way to do it with XP Home. No login options for scripts are available. The netsh commands do not seem to be available either. Anyone have a notion on how I might accomplish the IP setting at login?
Tuttle Reply:
Netsh should exist in XP Home as well as XP Pro if Service Pack 2 is installed. What happens if you run one of those netsh commands at a command prompt (and what commands are you using)?
I think a startup icon to run netsh in each user profile is probably the easiest way to do this, it's just a matter of making it work.
It's A Permission Issue Now...
Executing a batch file works fine -- changes the IP address as desired. The only remaining problem is that when the "Guest" account is selected, there isn't the required permission on the batch file to allow it to execute. "Runas" isn't available for batch files apparently.
Any suggestions on how can I give it the necessary permission(s)?
Quote:
Originally Posted by mreed
Okay -- you're right. Works from the command line. I think something isn't right with the script, however.
From the command prompt it executes the following okay: netsh {enter} interface ip {Enter} set address ...... {Enter}
I can't get the command to work in a script however. I have a batch file that executes "netsh exec <script filename>" -- the script file containing the "set address..." command. Something wrong with the syntax, but can't figure it out...
Original Post:
My wife's computer runs WP Home SP2 -- I want to have different IP addresses set dependent on who logs in. I am unable to find a way to do it with XP Home. No login options for scripts are available. The netsh commands do not seem to be available either. Anyone have a notion on how I might accomplish the IP setting at login?
Tuttle Reply:
Netsh should exist in XP Home as well as XP Pro if Service Pack 2 is installed. What happens if you run one of those netsh commands at a command prompt (and what commands are you using)?
I think a startup icon to run netsh in each user profile is probably the easiest way to do this, it's just a matter of making it work.