dazza Posted January 13, 2009 Posted January 13, 2009 On running regedt32, the registry is displayed as sub-windows within a window. How can I select one of these windows? I have tried Winactivate(sub-window name) but this doesnt work.
BrettF Posted January 13, 2009 Posted January 13, 2009 What is your final outcome for this? You may be able to use RegWrite/RegRead. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
KaFu Posted January 13, 2009 Posted January 13, 2009 It's not a window but a control (SysListView32), maybe search will help you. how to read those values... Best Regards OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Leigh Posted January 14, 2009 Posted January 14, 2009 The ultimate goal here is to load the hive ntuser.dat into the registry HKEY_USERS. At present there does not seem to be a function that will do this, so we are trying to select the 'sub-window' in regedt32 in order to use key strokes to load the hive. However, the subwindows change position and class name each time regedt32 is opened. The only information that does not chanfe is the subwindows title.
BrettF Posted January 14, 2009 Posted January 14, 2009 Sure it's possible, Open the file, parse it, use RegWrite. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Leigh Posted January 14, 2009 Posted January 14, 2009 Ok, what do you mean by parsing it? I have not come across this term before. cheers, Leigh
azure Posted January 14, 2009 Posted January 14, 2009 Ok, what do you mean by parsing it? I have not come across this term before. cheers, Leigh Umm... $wheretomount = "HKEY_USERS\MOUNTEDHIVE" $filetomount = "C:\WINNT\PROFILES\USERID\NTUSER.DAT" Run("reg load " & $wheretomount & " " & $filetomount) That should work. Change the location of wherever your user's profile ntuser.dat is located. Also, you cannot mount a ntuser.dat that's in use!
weaponx Posted January 14, 2009 Posted January 14, 2009 I was just going to post the same thing as azure.
Leigh Posted January 14, 2009 Posted January 14, 2009 Umm... $wheretomount = "HKEY_USERS\MOUNTEDHIVE" $filetomount = "C:\WINNT\PROFILES\USERID\NTUSER.DAT" Run("reg load " & $wheretomount & " " & $filetomount) That should work. Change the location of wherever your user's profile ntuser.dat is located. Also, you cannot mount a ntuser.dat that's in use! thanks for the help guys, Ive tried this but to no avail, i can definitly load the hive manually so there is now worries about mounting in use. Would this be affected by the fact this is on windows 2000?
azure Posted January 14, 2009 Posted January 14, 2009 (edited) thanks for the help guys, Ive tried this but to no avail, i can definitly load the hive manually so there is now worries about mounting in use. Would this be affected by the fact this is on windows 2000? Y:\>reg /? Console Registry Tool for Windows - version 3.0 Copyright © Microsoft Corp. 1981-2001. All rights reserved REG Operation [Parameter List] Operation [ QUERY | ADD | DELETE | COPY | SAVE | LOAD | UNLOAD | RESTORE | COMPARE | EXPORT | IMPORT ] Return Code: (Except of REG COMPARE) 0 - Succussful 1 - Failed For help on a specific operation type: REG Operation /? Examples: REG QUERY /? REG ADD /? REG DELETE /? REG COPY /? REG SAVE /? REG RESTORE /? REG LOAD /? REG UNLOAD /? REG COMPARE /? REG EXPORT /? REG IMPORT /? It comes with Windows XP. For Windows 2000, it's available via the 2000 Resource Kit. Edited January 14, 2009 by azure
Leigh Posted January 15, 2009 Posted January 15, 2009 It comes with Windows XP. For Windows 2000, it's available via the 2000 Resource Kit.ahh that would make sense, thanks guys!
Leigh Posted January 15, 2009 Posted January 15, 2009 ahh that would make sense, thanks guys!It makes sense, but sometimes sense is not the way to go!, unfortunately using .exe will not be possible for security issues. :-( Any other ideas!?
trancexx Posted January 15, 2009 Posted January 15, 2009 It makes sense, but sometimes sense is not the way to go!, unfortunately using .exe will not be possible for security issues. :-( Any other ideas!? Do what BrettF said.parse (singular) - division of input into small sections that are easy for a program to process ♡♡♡ . eMyvnE
azure Posted January 15, 2009 Posted January 15, 2009 It makes sense, but sometimes sense is not the way to go!, unfortunately using .exe will not be possible for security issues. :-( Any other ideas!? RE: BrettF -> You can't parse ntuser.dat files like that.. they're all binary and stuff. Use these two UDF's: Privilege.au3 reg.au3 #include <reg.au3> _RegLoadHive("C:\Documents and Settings\Guest\ntuser.dat", "HKU\TempHive") RunWait("regedit.exe") _RegUnloadHive("HKU\TempHive") These mount the registry hives with advapi32.dll's RegLoadKey function. Enjoy.
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