Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
August 14, 2001
Marty List brings us ModifyProfile.zip.
The ReadMe.txt contains:
Modify Profile [version 1.20]Loads Registry hives and modifies profiles for users who are not currentlylogged in. Can also be used to modify new user profiles (Default User).Syntax: ModifyProfile.exe /PROFILE:profilename|ALL /REG:filename /KEYNAME:nameExamples:ModifyProfile.exe /PROFILE:ALL /REG:"C:TEMPNew Stuff.reg" /KEYNAME:TempHiveModifyProfile.exe /PROFILE:"C:Documents and SettingsDefault UserNTUser.dat" /REG:C:TEMPNewStuff.reg /KEYNAME:TempHiveThe /REG parameter must be a valid .REG file able to be imported by REGEDIT.EXE.The key name must be listed under HKEY_USERS and must match the name specifiedin the /KEYNAME parameter. Example: Windows Registry Editor Version 5.00 [HKEY_USERSTempHiveSoftwareOptimum XModify Profile1.20] "Value"="Data"An argument of /PROFILE:ALL will modify all existing profiles and Default User.An argument of /? or -? displays this syntax and always returns 10.A successful completion will return 0.Copyright 1999-2002 Marty List
To add Key AAA to the Software hive of user testpwd and add Value Name bbb under AAA:
modifyprofile /profile:"C:Documents and SettingstestpwdNTUSER.DAT" /REG:C:ZIPNEWtemp.reg /keyname:TESTHIVEwhere temp.reg contains:REGEDIT4[HKEY_USERSTESTHIVESoftwareAAA]"bbb"=dword:00000000The program displays:==========================================================================
==========================================================================Loading hive C:Documents and SettingstestpwdNTUSER.DATImporting C:ZIPNEWtemp.regUnloading hive C:Documents and SettingstestpwdNTUSER.DATSuccessful.Process is exiting with a return code of 0.
You May Also Like