Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export and import Registry to a .HIV file. 1

Status
Not open for further replies.

wibbe

IS-IT--Management
Oct 30, 2002
68
0
0
SE
Is it possible to use a vb-script to import a .hiv-file (binary) of HKCU then a user login to the computer. And then a simular export then the user logoff.

Today we use reg.exe to solve the issue, but I can not add error handling and reporting to that function.
This is used in a load balanced terminal server invironment.

All hints are welcome :)
Thanks
 
Hello wibbe,

For limited functionality of read/write registry, you can take a look of regread, regwrite, regdelete methods exposed by wscript.shell. In particular, binary format hex(2) is limited to 4 bytes long for read/write.

If you have long reg_binary, you may consider methods exposed by wmi's stdregprov class, getbinaryvalue / setbinaryvalue. Have to check out ms sdk documentation for detail.

Export/Import would be the same as reading (parsing) / writing to a text file.

regards - tsuji
 
I have a long reg_binary. Can you provide sample code using wmi's stdregprov class?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top