Changing the static IP of a client
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?
This post is deleted!
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.
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
computer,IP#,mask,gateway ComputerName-01,192.168.1.5,255.255.255.0,192.168.1.1 ComputerName-02,192.168.1.6,255.255.255.0,192.168.1.1 ComputerName-03,192.168.1.7,255.255.255.0,192.168.1.1
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.
[B]netsh interface ip set address “Local Area Connection” static 192.168.0.10 255.255.255.0 192.168.0.1 1[/B]
- create a .bat file with the netsh command in it.
- make a new snapin -> upload the bat file into the snapin.
- associate the snapin with a computer
- deploy the snapin
- have coffee
for one computer, this really really seems like overkill to do via fog.
and easier way, would be to enable win remote shell on the target computer with "winrm quickconfig"
then you can simply connect to it and force the static ip change yourself, without doing any FOG-stuff.
winrs: -r:remote_comp_name cmd netsh interface ... blah blah blah