CL util to manipulate policy files?
I'd like to automate reading and changing settings in registry.pol files i.e. run some DOS box script that could point out missing/broken settings, run another one to add some new settings.
The policy file format is relatively simple and ::gasp:: documented, so there should be zillions of tools for this, but..
Anyone know of any?
Re: CL util to manipulate policy files?
Much googling later I can do the reading but via the MS ResKit regview.exe and look for things in the output. No luck yet for changing/adding.
::time passes::
Found one in a collection of GPL utils written in Delphi called batch_tools.zip at www.mirkes.de.
gpscript - nearly everything I want.
gpcvreg - converts reg files into format usable by gpscript.
I say "nearly". Regview and gpscript both dump registry.pol entries across multiple lines e.g.
key
value
type
data
But I want those all on one line to make checking an entire entry easy with findstr or whatever. Don't have Delphi to tweak the source so ended up writing my own util to do that bit (<20 lines of C).