Bypass blocked regedit, concatenate cmd commands & quotes in quotation marks

At a customer I had the problem that we had there a logon scrip, but we were given no access to the registry. Well, we had local administrave permissions. At first I tried runas, but we have to save the password – no chance. Not even echo password works. lsrunase seems to solve the problem, but the version that I found, had problems with quotes in quotation marks. At the end I used a simple AutoIt script.

AutoIt Script (runas.exe)

Change reg entry for HKLM

Change reg entry for current user (HKCU don’t work because you run as local admin!)

Reg changes and file copy (also used quotes in quotation marks and concatenate cmd commands)