Jump to content

Search the Community

Showing results for tags 'hklm\software\'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 2 results

  1. Hello, I am trying to use RegWrite to create a key within HKLM on W10 without success. I've had a look at a number of posts on the forum to troubleshoot, without success. This post seems highly relevant Here is my latest script with output ; Read/write data to registry #RequireAdmin Example() Func Example() Local $Status = "" ; Check if the registry key is already existing, so as not to damage the user's system. RegRead("HKLM\SOFTWARE\Microsoft\F1", "Key1") ConsoleWrite("Error: " & @error & @CRLF) ; Write a single REG_SZ value to the key "Key1". $Status = RegWrite("HKLM\SOFTWARE\Microsoft\F1", "Key1", "REG_SZ", "This is an example of RegWrite") ConsoleWrite("Status: " & $Status & @TAB & " Error: " & @error & @CRLF) EndFunc ;==>Example Output >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "D:\Temp\Macrium\Registry_write_read.au3" /UserParams +>16:18:46 Starting AutoIt3Wrapper (21.316.1639.1) from:SciTE.exe (4.4.6.0) Keyboard:00000409 OS:WIN_10/2009 CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\ZEN\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\ZEN\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.16.1) from:C:\Program Files (x86)\AutoIt3 input:D:\Temp\Registry_write_read.au3 +>16:18:47 AU3Check ended.rc:0 >Running:(3.3.16.1):C:\Program Files (x86)\AutoIt3\autoit3.exe "D:\Temp\Registry_write_read.au3" +>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop. Error: 0 Status: 1 Error: 0 +>16:18:47 AutoIt3.exe ended.rc:0 +>16:18:48 AutoIt3Wrapper Finished. >Exit code: 0 Time: 2.362 The user is a local admin. According to the script output, the regwrite call should have succeeded. SciTe has been runas admin. I've also tried compiling the script and running the resulting exe as admin. Obviously I can't see the consolewrite output when I do this, but if the function calls were working then the exe should update the registry. After suggestions as to options to try next. Also, I tried narrowing down the forum search using arguments like: "regwrite windows 10" or "regwrite windows10" and for some reason had no results on the search; so had to use more general search arguments. Would be interested to know why the above wouldn't work as a search argument. Thanks VW
  2. L.S. Not all registry keys are read. And that is nuisance when some keys are nice checks for existance of certain application. See below a litle test script and the output. Why is output of test 3 and 4 empty?? $test = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\ThinPrint", "Lang") ConsoleWrite("test1: " & $test & @CR) $test2 = Regread("HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications", "Wordpad") ConsoleWrite("test2: " & $test2 & @CR) $test3 = Regread("HKEY_LOCAL_MACHINE\SOFTWARE\CBSTEST", "CBSTestWTTLogFile") ConsoleWrite("test3: " & $test3 & @CR) $test4 = Regread("HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip", "Path") ConsoleWrite("test4: " & $test4 & @CR) Output: test1: enu test2: Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Capabilities test3: test4:
×
×
  • Create New...