Creating a registry key based on username

B

Barry Petzold

I need to automatically create a registry key via script, and the key needs
to be the current user name.

"HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsustem\Profiles\billsmith"

Does anyone know how I can do this?
 
J

Jerold Schulman

I need to automatically create a registry key via script, and the key needs
to be the current user name.

"HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsustem\Profiles\billsmith"

Does anyone know how I can do this?

Using REG.EXE from the support tolls (on the CD-ROM)

reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsustem\Profiles\%username%"



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
J

Jerold Schulman

I need to automatically create a registry key via script, and the key needs
to be the current user name.

"HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsustem\Profiles\billsmith"

Does anyone know how I can do this?

Using REG.EXE from the support tolls (on the CD-ROM)

reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsustem\Profiles\%username%"



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top