Changing the static IP of a client

  • Hi guys,

    I already have seen someone who used FOG for changing the static IP of Windows XP clients after imaging several years ago. Now that I want to try this on my own, I can not find any information about it. Is this feature gone in the new versions?

  • Banned

    This post is deleted!

  • @Junkhacker

    Ok using a CSV seems to be a good idea. Unfortunately you generate another place of information with this.

    It would be great if the snapin link would be configurable for every host. So I could give every host different arguments for runnning a netsh script.

  • Developer

    we use a single snapin for each group of computers we need to change to static.
    Set csv=.\IPs.csv

    for /f “skip=1 delims=, tokens=1-4” %%a in (%csv%) do (
    if “%computername%”=="%%a" (
    netsh int ipv4 set address “Local Area Connection” static %%b %%c %%d

    and in file IPs.csv

  • Senior Developer

    I’m not aware of the FogService being able to change the hosts IP address. While what you’re saying is “possible” it has never been a default part of the FOG Client/Service files.

    There was never a “feature” of this type before either. Yes there did used to be n “ip” field but it was rarely used or needed. This “field” still exists however and can be set during registration time.

    The “text” field has since been deprecated out and we removed the “header” on the list/search host feature, but if the IP is set in the DB you should see it next to the host anyway.

  • Thanks for your reply. This means that I need one batch file for each machine. With over 400 machines this produces much snapins.

    I remember a data field in the fog web gui below host name for it. Maybe the guy just coded a snapin that connected to the fog database to get the individual IP for each machine…? I also read a comment in another forum that the FogService should be also able to change the IP.

    @mod: Please feel free to move this thread to general.

  • also, please do not post this kind of comment in “feature request” … post it in general category.

  • [url][/url]
    something like:
    [B][FONT=Segoe UI][COLOR=#333333]netsh interface ip set address “Local Area Connection” static 1[/COLOR][/FONT][/B]

    [COLOR=#333333]aaanywhooo … [/COLOR]

    [COLOR=#333333]1. create a .bat file with the netsh command in it. [/COLOR]
    [COLOR=#333333]2. make a new snapin -> upload the bat file into the snapin.[/COLOR]
    [COLOR=#333333]3. associate the snapin with a computer[/COLOR]
    [COLOR=#333333]4. deploy the snapin[/COLOR]
    [COLOR=#333333]5. have coffee [/COLOR]

    [COLOR=#333333]for one computer, this really really seems like overkill to do via fog. [/COLOR]

    [COLOR=#333333]and easier way, would be to enable win remote shell on the target computer with “winrm quickconfig”[/COLOR]
    [COLOR=#333333]then you can simply connect to it and force the static ip change yourself, without doing any FOG-stuff.[/COLOR]

    [CODE]winrs: -r:remote_comp_name cmd
    netsh interface … blah blah blah[/CODE]

Log in to reply