How can I write to HKCU

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3686
    75joe75
    Member
    • Total Post: 40
    • Frequent Flyer
    • ★★★

    Just wondering, when a package is sent throuh WDM, it:
    1.Disables WF
    2.Reboots
    3.Actions the .rsp
    4.When .RSP completes it reboots one more time to enable the WF back.

    How can I write to the HKCU of my autologin user when its in step 3. I tried with the MR cmmand pointing to HKCU but did not work. I tried creating a VBS to write the reg key, but no go. Can it be possible when its in step 3 that the HKCU is the SYSTEM user which the WDM uses making it difficult.

    If someone has an alternate way let me know. My Autologin user is the default “USER” whih WYSE provides.

    Thanks

    #16332
    ConfGen
    Keymaster
    • Total Post: 10696
    • Jedi Master
    • ★★★★★★★

    Try this scripting command:

    MR “Reg Filesregfile.reg” “User”

    CG

    #16333
    75joe75
    Member
    • Total Post: 40
    • Frequent Flyer
    • ★★★

    Excellent,.. will do, I will let you know of the outcome

    #16334
    75joe75
    Member
    • Total Post: 40
    • Frequent Flyer
    • ★★★

    Works like a C _H _ A _R_M

    Thanks a million

    #16337
    ConfGen
    Keymaster
    • Total Post: 10696
    • Jedi Master
    • ★★★★★★★

    BTW, you were perfectly right when saying the a WDM script is not executed in the logged in user account syntax but in the system account syntax. That’s why you need the “User” addition in the MR command.

    CG

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.