Hello,

our company change now to windows 7. Now we have a problem with a script. It don't run because UAC run on the client ? Please Help !!!

 Code:
;====================================================================
                ;
                ; CHANGE ODBC-SETTINGS FOR 32 BIT DATA SOURCES
                ;
                ;====================================================================
                ; OLD SQL Server 
                $OLDSERVER = "one"
                ; NEW SQL Server
                $NEWSERVER = "two"
                
                $MyKey="HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\nymeso32"
                IF EXISTKEY($MyKey)=0
                ; ---- only if data source exists and changes are not made ------
                $Server = READVALUE($MyKey, "Server")
                               IF $Server = $OLDSERVER
                               ; Name of SQL Server
                               $X = WRITEVALUE($MyKey, "Server", $NEWSERVER, "REG_SZ")
                               ENDIF
                ENDIF

; END SCRIPT FILES =====================================================


Edited by captaincrash0815 (2011-09-29 08:02 AM)