okay, so I found the section in MOD_HostNameChanger.cs in the folder /usr/src/fog_0.32/FOG Service/src/FOG_HostNameChanger
I have added these two lines
regKey = Registry.LocalMachine.OpenSubKey(@“SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”, true);
regKey.SetValue(“AltDefaultDomainName”, newname);
regKey = Registry.LocalMachine.OpenSubKey(@“SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”, true);
regKey.SetValue(“DefaultDomainName”, newname);
to the class
[code]
private void doDefaultMode( string newname)
{
RegistryKey regKey = null;
log(MOD_NAME, “Using default fog method.”);
regKey = Registry.LocalMachine.OpenSubKey(@“SYSTEM\CurrentControlSet\Services\Tcpip\Parameters”, true);
regKey.SetValue(“NV Hostname”, newname);
regKey = Registry.LocalMachine.OpenSubKey(@“SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName”, true);
regKey.SetValue(“ComputerName”, newname);
regKey = Registry.LocalMachine.OpenSubKey(@“SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName”, true);
regKey.SetValue(“ComputerName”, newname);
regKey = Registry.LocalMachine.OpenSubKey(@“SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”, true);
[/code]
being the registry values I am wanting to change are in [B]HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName[/B] and [B]HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AltDefaultDomainName[/B]
and I want to populate it with the same information being supplied in the rest of the registry keys.
Do I need to compile this and push it, or is saving the configurations going to be good enough?
I already built my image, do I need to update the fog client on my images and push it out again?
Sorry not done anything like this before don’t want to break anything and I want it to work 😄