Results 1 to 5 of 5

Thread: scipt to apply registry key to hkcu

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    3

    Talking scipt to apply registry key to hkcu


    Hi All,
    I am new to vb scripting and was hoping someone can help me out. I have a vbscript that I have included below that I am using to make an application terminal server/ citrix capable. What I am trying to do is inside the vbscript call a registry file that will apply to each new users HKCU path noted in the reg file. The challenge is that i have a reg file, but can't seem to figure out what variable I need to put inside the reg file to change the username to be like a %userprofile% or %username% so that when the registry gets imported into each users profle its shows their username and not %userprofile% or something similar. The application wont fire off if that part in the registry doesn't have a valid path. I have in the regfile now %username% and its not working.

    I have attached vbscript application code and the small reg code. I am hoping that there is just some other variable that I can place in the .reg file that will make it change itself to the username logging in. I am also curious if the statement in the vbscript is correct to call the registry file. If anyone knows of an easier to gets these reg values imported I would be ecstatic.

    Thank you Gurus
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width