|
-
Jul 26th, 2008, 11:16 PM
#1
Thread Starter
New Member
-
Jul 26th, 2008, 11:33 PM
#2
Thread Starter
New Member
Re: scipt to apply registry key to hkcu
forgot to mention that the values in the registry file alread exist when the user logs in. It just shows another users name so my thought was to export all the keys from a user that is working and just import them when a new users logs into to show their username and not the other username.
-
Jul 28th, 2008, 07:26 AM
#3
New Member
Re: scipt to apply registry key to hkcu
 Originally Posted by sanchito75
forgot to mention that the values in the registry file alread exist when the user logs in. It just shows another users name so my thought was to export all the keys from a user that is working and just import them when a new users logs into to show their username and not the other username.
Why not do it all in the VBScript file ?
Something like this should work great. I have only included one line from the reg file but you should get the idea.
Code:
Call oShell.RegWrite("HKEY_CURRENT_USER\Software\Attachmate\Accessory Manager\WorkstationUser\Preferences\DirIC32CFG", "C:\Documents and Settings\" & CtxUser & "\My Documents\Attachmate\INFOCNEE", "REG_SZ")
All the registry entries seem to be strings so just copy this line and change the entries to match you reg file.
Just a note to, you can not import a registry file (regedit.exe /s regfile.reg) on Windows Vista as a standard user with UAC turned on BUT you can use a VBScript.....Thanks Microsoft
Hope this helps
Rodney
Last edited by Rodent2008; Jul 28th, 2008 at 07:30 AM.
-
Jul 28th, 2008, 08:39 AM
#4
Thread Starter
New Member
Re: scipt to apply registry key to hkcu
aweseome....So when I change the code to below
Call oShell.RegWrite("HKEY_CURRENT_USER\Software\Attachmate\Accessory Manager\WorkstationUser\Preferences\DirIC32CFG", "C:\Documents and Settings\" & CtxUser & "\My Documents\Attachmate\INFOCNEE", "REG_SZ")
Will every user get a path that shows their username in the registry path for the application as opposed to showing someone elses profile path?
-
Aug 1st, 2008, 02:26 AM
#5
Re: scipt to apply registry key to hkcu
 Originally Posted by sanchito75
Will every user get a path that shows their username in the registry path for the application as opposed to showing someone elses profile path?
Welcome to the forums sanchito75! The HKEY_CURRENT_USER registry hive is completely unique to every user who logs onto a Windows computer, yes. Incidentally, this actual hive is stored within one or 2 files located in each user's Documents and Settings folder (Windows profile) and by default, can't be accessed or read by most normal users.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|