remotely edit DNS and IP configuration on vpn clients

Home Forums Scripting DOS Command Shell remotely edit DNS and IP configuration on vpn clients

This topic contains 10 replies, has 6 voices, and was last updated by Avatar cdimes 9 years, 3 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Avatar
    Perwani
    Member
    #152733

    Sir,

    I have a VPN based Network in our organization. and it is connecting more then 50 cities. all pc’s have clients rights.

    Sir is there any way to change there DNS by using my computer local command prompt without logging on there systems.
    I want to access those system through my command prompt and wants to change there IP and DNS.

    Please is there anyone can guide me the proper use and commands of netsh.
    edit.gif

    Avatar
    Ossian
    Moderator
    #183479

    Re: Command Prompt

    If it is a domain based network, you could roll out a startup script to use netsh to reconfigure them

    Oops — I see you know you need netsh already

    Avatar
    cdimes
    Member
    #380115

    Re: Command Prompt

    might wanna try microsoft’s script repository

    on the left side choose “networking” -> “client side management”
    look for Modify the TCP/IP Configuration for a Computer

    i can’t post the link because i have less than 5 posts to my name.

    Avatar
    vonPryz
    Member
    #347540

    Re: Command Prompt

    Perwani;227571 wrote:
    Sir is there any way to change there DNS by using my computer local command prompt without logging on there systems.
    I want to access those system through my command prompt and wants to change there IP and DNS.

    You should set DNS configuration from DHCP settings instead.

    For scripting solution, netsh -r will connect to a remote system. Read this Petri’s article about netsh usage. The standard way is to put a list of clients into a text file and loop through it. Alternatively, you can query AD for desired computers and use it as the source for netsh targets.

    -vP

    tehcamel
    tehcamel
    Moderator
    #356859

    Re: remotely edit DNS and IP configuration on vpn clients

    i agree with vonpryz – using dhcpis probably the best way to do this.

    Avatar
    Anonymous
    #368893

    Netsh Commands

    Mod edit: Threads merged

    Sir,

    I have a firewall secure network in my orgnaztion. i wanna access my clients systems through command prompt remtrly and change there DNS and IP addresses remotely through my command prompt without interupting users and without logging OFF/ON systems.

    Is there anyone can explain me how can i do that in simple way by using NETSH commands and access my clients remotely through my Local system,(command Promt) which is also on same network.

    waiting for your prompt action.

    regards

    Nabeel

    Avatar
    Ossian
    Moderator
    #183494

    Re: Netsh Commands

    Please do NOT double post — you have asked the same question, and got answers, here:
    http://forums.petri.com/showthread.php?t=52553

    Avatar
    Anonymous
    #368894

    Re: remotely edit DNS and IP configuration on vpn clients

    may i know from where i can get all commands which are relevent to netsh remotely access. only remote using commands.

    Avatar
    Ossian
    Moderator
    #183498

    Re: remotely edit DNS and IP configuration on vpn clients

    :google:
    Alternatively, click on the blue link in my post #2 above — that goes to the reference manual.

    Avatar
    Anonymous
    #368895

    Re: remotely edit DNS and IP configuration on vpn clients

    dear all,

    It’s not a domain based network. and -r command is not working.

    tehcamel
    tehcamel
    Moderator
    #356882

    Re: remotely edit DNS and IP configuration on vpn clients

    you want to change the IP addresses and DNS settings on a whole range of computers, that are connected to a phsyical network, right ?
    you’re talking about over 50 locations, connected via VPN.

    So my assumption here is, unless you are maintaining a massively stupid series of Excel spreadsheets listing all the current IP addresses, subnets, routes, etc, you probably use DHCP.

    So therefore my question becomes:

    Why are you so insistent on using NetSH, or command line utilities to acheive your aim?
    Why not just use the DHCP system – this is one of the things it was actually designed for.

    Manually changing IP address settings for computers over 50 remote sites. Are you insane ?

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.