Re: Regwrite problem
Stefan Lubitz <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
As far as I know, you are not able to create new keys under HKLM/Hardware. In fact you can create, but they will be deleted. Use another location like: HKLM\Software\Audit. Regards, Stefan Gert Scheepers schrieb: > > Hi All > > I am busy with a program to do a hardware and software audit of the > company > assets. > > Part of this means that a company asset number must be recorded as > well for > each PC and printer. > > I can get monitor and pc serial number, models, etc. Of course the asset > number will be have to be entered manually > > I created a Gui to easily record these asset numbers. I then want to write > it to the registry, if I in future have to re-audit, I can query the > registry. > > For the PC base this will work fine but for the monitor, I would > compare the > previously recorded serial number to the value read, which should tell > me if > the monitor was changed since the previous audit. > > Sounds easy? I write to the registry, this can then be verified, all > ok. On > rebooting the PC, the entries are all wiped out! > > I am writing to "HKLM\Hardware\AUDIT", any ideas why this happens and > how I > can overcome this problem? > > Regards > Gert > > [Non-text portions of this message have been removed] > >