Results 1 to 9 of 9

Thread: Change gateway IP remotely using netsh

  1. #1
    RayRogers Guest

    Change gateway IP remotely using netsh

    Can anyone help on correct/complete netsh command to change client default
    gateway IP remotely. Users are not part of administrator group on client PC.
    Try to run this from one server, instead of hopping on hundreds of PCs.
    Thanks!

  2. #2
    Robert L. \(MS-MVP\) Guest

    Re: Change gateway IP remotely using netsh

    First of all, I would use DHCP if I had over hundred computers. You can
    use -r, for example, netsh -r <remote machine's current IP> interface ip set
    address "Local Area Connection" static <IP Address> <Subnet Mask> <Default
    Gateway> 1.

    Since the user doesn't have administrator right, you may create a script and
    run it under group policy. This post may help too.

    let a non-administrator user to ...
    Posted: Tue Apr 08, 2008 2:18 pm Post subject: let a non-administrator
    user to add a route on ... you want to know how to let a non-administrator
    user to ...
    http://www.chicagotech.net/netforums...062a64c0d3e80c


    --
    Bob Lin, MS-MVP, MCSE & CNE
    Networking, Internet, Routing, VPN Troubleshooting on
    http://www.ChicagoTech.net
    How to Setup Windows, Network, VPN & Remote Access on
    http://www.HowToNetworking.com
    "RayRogers" <RayRogers@news.postalias> wrote in message
    news:9775B11B-7808-407D-8696-8AC4F2A80E30@microsoft.com...
    > Can anyone help on correct/complete netsh command to change client default
    > gateway IP remotely. Users are not part of administrator group on client
    > PC.
    > Try to run this from one server, instead of hopping on hundreds of PCs.
    > Thanks!



  3. #3
    Phillip Windell Guest

    Re: Change gateway IP remotely using netsh

    Why aren't they using DHCP?


    --
    Phillip Windell
    www.wandtv.com

    The views expressed, are my own and not those of my employer, or Microsoft,
    or anyone else associated with me, including my cats.
    -----------------------------------------------------

    "RayRogers" <RayRogers@news.postalias> wrote in message
    news:9775B11B-7808-407D-8696-8AC4F2A80E30@microsoft.com...
    > Can anyone help on correct/complete netsh command to change client default
    > gateway IP remotely. Users are not part of administrator group on client
    > PC.
    > Try to run this from one server, instead of hopping on hundreds of PCs.
    > Thanks!




  4. #4
    Phillip Windell Guest

    Re: Change gateway IP remotely using netsh


    "Phillip Windell" <philwindell@hotmail.com> wrote in message
    news:uAzbz4nHJHA.2272@TK2MSFTNGP04.phx.gbl...
    > Why aren't they using DHCP?


    I was also thinking,...if you have "hundreds of machines" and since Ethernet
    is not supposed to go 250-300 machines per subnet (typically a /24 mask or
    254 host serves the purpose perfectly) then do you have over that
    many?,...and if you do, do you have it broken into subnets,...and if you do
    that the Default Gatreway won't be the same in different subnets,...so you'd
    have to be careful with how you apply the GPO.

    --
    Phillip Windell
    www.wandtv.com

    The views expressed, are my own and not those of my employer, or Microsoft,
    or anyone else associated with me, including my cats.
    -----------------------------------------------------



  5. #5
    RayRogers Guest

    Re: Change gateway IP remotely using netsh

    Can administrator/password be part of the netsh command so we don;t have to
    use policy? Thanks.

    "Robert L. (MS-MVP)" wrote:

    > First of all, I would use DHCP if I had over hundred computers. You can
    > use -r, for example, netsh -r <remote machine's current IP> interface ip set
    > address "Local Area Connection" static <IP Address> <Subnet Mask> <Default
    > Gateway> 1.
    >
    > Since the user doesn't have administrator right, you may create a script and
    > run it under group policy. This post may help too.
    >
    > let a non-administrator user to ...
    > Posted: Tue Apr 08, 2008 2:18 pm Post subject: let a non-administrator
    > user to add a route on ... you want to know how to let a non-administrator
    > user to ...
    > http://www.chicagotech.net/netforums...062a64c0d3e80c
    >
    >
    > --
    > Bob Lin, MS-MVP, MCSE & CNE
    > Networking, Internet, Routing, VPN Troubleshooting on
    > http://www.ChicagoTech.net
    > How to Setup Windows, Network, VPN & Remote Access on
    > http://www.HowToNetworking.com
    > "RayRogers" <RayRogers@news.postalias> wrote in message
    > news:9775B11B-7808-407D-8696-8AC4F2A80E30@microsoft.com...
    > > Can anyone help on correct/complete netsh command to change client default
    > > gateway IP remotely. Users are not part of administrator group on client
    > > PC.
    > > Try to run this from one server, instead of hopping on hundreds of PCs.
    > > Thanks!

    >
    >


  6. #6
    RayRogers Guest

    Re: Change gateway IP remotely using netsh

    There are< 200 production floor PCs and needs to be on static IPs. Thanks.

    "Phillip Windell" wrote:

    >
    > "Phillip Windell" <philwindell@hotmail.com> wrote in message
    > news:uAzbz4nHJHA.2272@TK2MSFTNGP04.phx.gbl...
    > > Why aren't they using DHCP?

    >
    > I was also thinking,...if you have "hundreds of machines" and since Ethernet
    > is not supposed to go 250-300 machines per subnet (typically a /24 mask or
    > 254 host serves the purpose perfectly) then do you have over that
    > many?,...and if you do, do you have it broken into subnets,...and if you do
    > that the Default Gatreway won't be the same in different subnets,...so you'd
    > have to be careful with how you apply the GPO.
    >
    > --
    > Phillip Windell
    > www.wandtv.com
    >
    > The views expressed, are my own and not those of my employer, or Microsoft,
    > or anyone else associated with me, including my cats.
    > -----------------------------------------------------
    >
    >
    >


  7. #7
    Newell White Guest

    Re: Change gateway IP remotely using netsh


    "RayRogers" wrote:

    > There are< 200 production floor PCs and needs to be on static IPs. Thanks.
    >

    If your static IP reservations are set up in DHCP you can assign a gateway
    IP address to individual reservations - that's how I load share between
    several broadband routers on our LAN.

    This method meets your requirement of controlling from the (DHCP) server.
    --
    Regards,
    Newell White


  8. #8
    Phillip Windell Guest

    Re: Change gateway IP remotely using netsh

    "RayRogers" <RayRogers@news.postalias> wrote in message
    news:A79A9DE4-F122-49EC-BBA0-8991FA0CE3A8@microsoft.com...
    > There are< 200 production floor PCs and needs to be on static IPs. Thanks.



    Ok,
    That's fine then.

    --
    Phillip Windell
    www.wandtv.com

    The views expressed, are my own and not those of my employer, or Microsoft,
    or anyone else associated with me, including my cats.
    -----------------------------------------------------



  9. #9
    Robert L. \(MS-MVP\) Guest

    Re: Change gateway IP remotely using netsh

    Sure, you can use -u and -p switch. This link may help.

    netsh commandNetsh is a command-line scripting utility that allows you to,
    either locally or remotely, display, modify or script the network
    configuration of a computer ...
    www.chicagotech.net/netsh.htm


    --
    Bob Lin, MS-MVP, MCSE & CNE
    Networking, Internet, Routing, VPN Troubleshooting on
    http://www.ChicagoTech.net
    How to Setup Windows, Network, VPN & Remote Access on
    http://www.HowToNetworking.com
    "RayRogers" <RayRogers@news.postalias> wrote in message
    news:C2904A32-6F61-4B4D-BA8F-0AD0FE3A0B15@microsoft.com...
    > Can administrator/password be part of the netsh command so we don;t have
    > to
    > use policy? Thanks.
    >
    > "Robert L. (MS-MVP)" wrote:
    >
    >> First of all, I would use DHCP if I had over hundred computers. You can
    >> use -r, for example, netsh -r <remote machine's current IP> interface ip
    >> set
    >> address "Local Area Connection" static <IP Address> <Subnet Mask>
    >> <Default
    >> Gateway> 1.
    >>
    >> Since the user doesn't have administrator right, you may create a script
    >> and
    >> run it under group policy. This post may help too.
    >>
    >> let a non-administrator user to ...
    >> Posted: Tue Apr 08, 2008 2:18 pm Post subject: let a
    >> non-administrator
    >> user to add a route on ... you want to know how to let a
    >> non-administrator
    >> user to ...
    >>
    >> http://www.chicagotech.net/netforums...062a64c0d3e80c
    >>
    >>
    >> --
    >> Bob Lin, MS-MVP, MCSE & CNE
    >> Networking, Internet, Routing, VPN Troubleshooting on
    >> http://www.ChicagoTech.net
    >> How to Setup Windows, Network, VPN & Remote Access on
    >> http://www.HowToNetworking.com
    >> "RayRogers" <RayRogers@news.postalias> wrote in message
    >> news:9775B11B-7808-407D-8696-8AC4F2A80E30@microsoft.com...
    >> > Can anyone help on correct/complete netsh command to change client
    >> > default
    >> > gateway IP remotely. Users are not part of administrator group on
    >> > client
    >> > PC.
    >> > Try to run this from one server, instead of hopping on hundreds of PCs.
    >> > Thanks!

    >>
    >>



Similar Threads

  1. Netsh winsock reset
    By Saaz in forum Operating Systems
    Replies: 4
    Last Post: 08-12-2011, 06:31 AM
  2. How to Change Gateway Laptop LCD LED taillight Bulb
    By Mastermind in forum Guides & Tutorials
    Replies: 1
    Last Post: 11-05-2011, 06:06 AM
  3. Replies: 3
    Last Post: 01-01-2009, 04:59 PM
  4. how to change default gateway
    By tdubb in forum Windows Server Help
    Replies: 2
    Last Post: 30-03-2008, 06:43 PM
  5. netsh to set IP address on vista..
    By pdabak@yahoo.com in forum Vista Help
    Replies: 6
    Last Post: 12-02-2008, 07:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,388,956.14126 seconds with 16 queries