Creating a registry key based on username

  • Thread starter Thread starter Barry Petzold
  • Start date Start date
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?
 
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
 
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
 
Back
Top