Link to home
Start Free TrialLog in
Avatar of plimpias
plimpiasFlag for United States of America

asked on

Adding Registry keys with VBS.

Aight..

I need to add a registry key and a few strings under it under the HKEY_CURRENT_USER\Software\ section

i need to add a value in there called name but have it query active directory or use a environment lookup to look at the person that is logged in and grab the full name and insert it in this key

Also the same the the extension number. Which i have also store in active direcotory.

I have 1 key that is a path..which will be c:\documents and settings\current user? ( im not really user what i can use for the vbs script to use the current users profile path here?

can anyone tell me how i can use a vbs script to add registry keys and use these lookups?
ASKER CERTIFIED SOLUTION
Avatar of cookre
cookre
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Windows Shell com interface has these options, I believe.

Avatar of plimpias

ASKER

Im not sure I understand how I would get the vbs script to add the name of the person logged in into a string value under the registry. Thanks cookre for the info on creating the keys with vbs. But im just not quite sure how to insert the full name of the person logged in into a key??
In the firsrt link above, see objUser.userPrincipalName.

I presumed that's the item you wanted.