Edit the registry on many machines at once
Top  Previous  Next


Example 1 - set logon values

[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
[Settings_End]

[Machines_Begin]
\\EDU12
\\EDU14
\\EDU16
[Machines_End]

[Batch_Begin]   
// Set Legal Notice / Logon Welcome Message   
registry.write sz,hkey_local_machine,software\Microsoft\Windows NT\CurrentVersion\Winlogon,LegalNoticeCaption,A notice from your Network Admin:   
registry.write sz,hkey_local_machine,software\Microsoft\Windows NT\CurrentVersion\Winlogon,LegalNoticeText,Remember to follow the rules!   
   
// Set logon background color RGB value to blue   
registry.write sz,hkey_users,.DEFAULT\Control Panel\Colors,Background,0 0 128
   
// Set logon logo (first create mylogo.bmp and put it in c:\ on the machine where you run SetupBatcher)   
DOS copy c:\mylogo.bmp %servername%\admin$\mylogo.bmp   
registry.write sz,hkey_users,.DEFAULT\Control Panel\Desktop,Wallpaper,mylogo.bmp   
   
// Don't display last user in logon dialog   
registry.write sz,hkey_local_machine,software\Microsoft\Windows NT\CurrentVersion\Winlogon,DontDisplayLastUserName,1   
[Batch_End]


Example 2 - create keys and values, delete keys and values

[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
[Settings_End]

[Machines_Begin]
\\MAIN04
\\MAIN05
\\MAIN06
[Machines_End]

[Batch_Begin]
Registry.Key.Create hkey_local_machine, software, myKey   
Registry.Key.Create hkey_local_machine, software\myKey, subKey   
Registry.Key.Create hkey_local_machine, software\myKey, subKey2   
Registry.Key.Create hkey_local_machine, software\myKey, subKey3   
Registry.Write SZ, hkey_local_machine, software\myKey, Hello, Hello myKey!   
Registry.Write SZ, hkey_local_machine, software\myKey\subKey3, Hello, Hello subKey3!   
[Batch_End]

[Undo_Batch_Begin]
Registry.Key.Delete hkey_local_machine, software, myKey, recursive   
[Undo_Batch_End]