|
Guys, I had to modify the contents of $x, since if the entry didn't exist the value of readtype becomes "REG_NONE" and NOT "0".
$x=readtype("$currentKey","$currentValueName") if $x = "REG_NONE" $x=writevalue... create new value else $x=writeline... existed, error log endif
As for the code, how do we add attachments? Be aware, my code is VERY verbose, I'm no expert!
My basic strategy was:
1. Output registry contents from HKLM\system\currentcontrolset\services\lanmanserver\shares from each server to a text file.
2. Parse through text file, checking existance of keys/entries and adding where necessary.
I haven't actually tested it on a server yet, but it works fine on registry entries from my own PC that I sacrificed. Maybe this isn't exactly what you expected, it's nothing overly complicated.
Chortle, I agree Dean R. I'll also be "He who lurks in the background".
Right, I'm off for my mates birthday bash. Later...
Rix
|