dooky Posted March 7, 2012 Share Posted March 7, 2012 Hi,I´m just trying and trying to get it work but it wont Can someone plase help me?I need some Folders and a Key Created on some Remote Computer Registrys.I like to have ane exe File where a Message Box appears to enter the Computer Name,then it should made the change on the Remote PC.This is what I have:;Places the input box in the top left corner displaying the characters as they;are typed.Local $answer = InputBox("Info needed!!!", "Please enter Computer Name", "Compueter Name", "\\", _ - 1, -1, 0, 0); create just the keyRegWrite $answer("\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\HP LaserJet P2050 Series PCL6"); create just the keyRegWrite $answer("\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\HP LaserJet P2050 Series PCL6\PrinterDriverData"); Write a single REG_ valueRegWrite $answer("\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\HP LaserJet P2050 Series PCL6\PrinterDriverData", "SSNPNotifyEventSetting", "REG_DWORD", "0")I have no Idea how it works with the Computername to be added to the later use for RegWrite,and if it will work this way or not.I´m also have no experience in Scripting, but I try to help our Support Staff in Helpdesk with this.It will be sooo great if someone can help me with this small thing here!ThanksClemens Link to comment Share on other sites More sharing options...
water Posted March 7, 2012 Share Posted March 7, 2012 According to the help file you have to use "computernamekeyname" if you want to write to another users registry. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dooky Posted March 7, 2012 Author Share Posted March 7, 2012 hmm, yes, I have read it. But it did not realy help me. should it work like this? I don´t get it work, and I have no Idea why.RegWritetest.au3 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 7, 2012 Moderators Share Posted March 7, 2012 It should read something like this.... ...RegWrite ("" & $answer & "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPrintPrintersHP LaserJet P2050 Series PCL6PrinterDriverData", "SSNPNotifyEventSetting", "REG_DWORD", "0") "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
water Posted March 7, 2012 Share Posted March 7, 2012 If you have problems with an AutoIt function make sure to check the return value and the macros @error and @extended. The docu explains which values to expect. $iResult = RegWrite(...) If $iResult = 0 then ConsoleWrite("@error: " & @error & @CRLF) My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dooky Posted March 8, 2012 Author Share Posted March 8, 2012 this error I got:C:\Documents and Settings\s00375a\Desktop\RegWritetest.au3 (6) : ==> Error in expression.:$iResult = RegWrite(...)$iResult = RegWrite(^ ERROR>Exit code: 1 Time: 6.797RegWritetest.au3 Link to comment Share on other sites More sharing options...
water Posted March 8, 2012 Share Posted March 8, 2012 "..." has to be replaced by your key, type and content as specified in post #4. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dooky Posted March 8, 2012 Author Share Posted March 8, 2012 thank you both Guys! We made it working! Big Big Thanks!!! Link to comment Share on other sites More sharing options...
water Posted March 8, 2012 Share Posted March 8, 2012 My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki 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