dinodod Posted February 2, 2012 Share Posted February 2, 2012 I think that since the reg key I'm reading has a space, it's causing an issue. Or is there a limit on how deep regenumkey works? Is there a trick to this? Also, is there any way to run this remotely on another PC (as I am an admin to the PC)? Thanks! $path = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" <-- ok $path = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\toolbar" <-- Not ok ?! ;Must be ran locally. No remote support. $file = FileOpen("c:\temp\test.txt", 1) $path = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\toolbar" For $i= 1 to 2 $var = RegEnumKey($path, $i) msgbox(0,@Error,$var) If @error <> 0 then ExitLoop ;msgbox(0,@Error,$var) FileWrite($file, $var & @CRLF) Next FileClose($file) Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007 Link to comment Share on other sites More sharing options...
dinodod Posted February 3, 2012 Author Share Posted February 3, 2012 NM, I was using the wrong command. Should have been using RegEnumVal. Digital Chaos - Life as we know it today.I'm a Think Tank. Problem is, my tank is empty.The Quieter you are, the more you can HearWhich would you choose - Peace without Freedom or Freedom without Peace?Digital Chaos Macgyver ToolkitCompletely Dynamic MenuSQLIte controlsAD FunctionsEXCEL UDFPC / Software Inventory UDFPC / Software Inventory 2GaFrost's Admin Toolkit - My main competitor :)Virtual SystemsVMWAREMicrosoft Virtual PC 2007 Link to comment Share on other sites More sharing options...
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