How to create VBS script that writes in both 32 and 64 bit to all users HKCU… hive (including default and domain user)

  allusersprofile, registry, templates, vbscript, windows

It’s about configuring a new windows configuration template without any forced policies.
I need a Visual basic script (VBS) which can access all users HKCU registry hive (not the HKLM!), including domain users and the default one for future users, and with option to define approach to 32 and 64 bit (or bypass the windows redirection).

What I found out so far:

  • "RegUpdateAllHkcuHkcr.vbs" (by Mick Grove) works for all users but can’t approach specific 32/64 bit (https://github.com/micksmix/RegUpdateAllUsers).
  • The script from "https://www.4thcorner.net/2011/09/30/reading-and-writing-64-bit-register-of-32-bit/" can handle 32/64 Bit, but for the current user only.

=> For me there is no way to combine these two script methods named above.

Can someone help me, please?

Source: Windows Questions

LEAVE A COMMENT