I haven't tested it at all, but something like this should get you started

Code:

$auKey = '\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU'
$domain = getobject('WinNT://' + @domain)
$domain.Filter = split('Computer')
for each $computer in $domain
$ = addkey('\\' + $computer.Name + $auKey)
next

_________________________
Eric