FeReNGi Posted September 19, 2006 Posted September 19, 2006 Does anybody has already a script to mount the userprofiles ? I want a function like regread and regwrite for the userprofiles. They can be found in this location HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. With reg.exe they can me mounted and then you can change the settings. ServicesPE|LoadVMDK
Danny35d Posted September 19, 2006 Posted September 19, 2006 If this is for WinPe or Bartpe cd took a look to Registry Editor Pe. The .cab file include au3 source code, you may have to do some changes but I will get you start it. Triton script will load the user profile (ntuser.dat) into registry then you will able to use RegRead or RegWrite from autoit. AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
FeReNGi Posted September 19, 2006 Author Posted September 19, 2006 (edited) @danny35d It is for a real windows xp environement so file is in use. Does anybody know how todo that with the dll -> advapi32.dll functions -> RegConnectRegistryA -> RegOpenKeyA -> RegEnumKeyA -> RegCloseKey Any script guru is welcome ! Edited September 19, 2006 by FeReNGi ServicesPE|LoadVMDK
Danny35d Posted September 19, 2006 Posted September 19, 2006 FeReNGi said: @danny35dIt is for a real windows xp environement so file is in use.Does anybody know how todo that with the dll -> advapi32.dll functions-> RegConnectRegistryA-> RegOpenKeyA-> RegEnumKeyA-> RegCloseKeyAny script guru is welcome !If is in real windows it is basically the same think as winpe with the exception of the logon user.Beside the logon user you can load any other user profile ntuser.dat as a hive using reg.exe and for the logon user you can change the HKEY_CURRENT_USER. AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
FeReNGi Posted September 19, 2006 Author Posted September 19, 2006 (edited) Danny35d said: Beside the logon user you can load any other user profile ntuser.dat as a hive using reg.exe and for the logon user you can change the HKEY_CURRENT_USER.Current user is not possible because i run in another session as admin and current user is admin.Therefore i am looking for a way to edit the userprofiles of the current logged on user an all other user.Also reg.exe doesn't exist on windows 2000. Thats why i have found above functions. Edited September 19, 2006 by FeReNGi ServicesPE|LoadVMDK
Danny35d Posted September 19, 2006 Posted September 19, 2006 FeReNGi said: Current user is not possible because i run in another session as admin and current user is admin.Therefore i am looking for a way to edit the userprofiles of the current logged on user an all other user.Also reg.exe doesn't exist on windows 2000. Thats why i have found above functions.That is my point, if you login as admin you will abel to read this key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList as you mention on your first post, then user reg.exe to load ntuser.dat. for the user profiles.If I don't mistaken Reg.exe is part of Win2k Sp4. If not you can download from M$ Win2K Sp4 Support Tools and add it to your script with FileInstall(). AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now