Jump to content

Server URL Registry modification


Recommended Posts

It returns this

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "Y:\Ryan\SMOCitrixClient_POCT\regedittest.au3" /UserParams    
+>15:44:38 Starting AutoIt3Wrapper v.2.1.2.9    Environment(Language:0409  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86)
>Running AU3Check (1.54.22.0)  from:C:\Program Files\AutoIt3
+>15:44:38 AU3Check ended.rc:0
>Running:(3.3.8.1):C:\Program Files\AutoIt3\autoit3.exe "Y:\Ryan\SMOCitrixClient_POCT\regedittest.au3"    
--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
@@ Debug(3) : $rc = 0
>Error code: 1
+>15:44:38 AutoIt3.exe ended.rc:0
>Exit code: 0    Time: 0.423
Link to comment
Share on other sites

  • Developers

Add #requireAdmin at the top of your script:

#RequireAdmin
$rc= RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\PNAgent","ServerURL", "REG_SZ", "http://SMOCitrix.com/Citrix/PNAgent/Config.xml")

and when you need to write to a x64 hive use:

#RequireAdmin
$rc = RegWrite("HKEY_LOCAL_MACHINE64\SOFTWARE\Citrix\PNAgent","ServerURL", "REG_SZ", "http://SMOCitrix.com/Citrix/PNAgent/Config.xml")

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...