I have a whole bunch of scripts that I've generated using AutoIT that work great on Win2k and WinXP. I'm now trying to get them to work on Windows 7 (32 bit and 64 bit). I am deploying the scripts using LANDesk Management Suite version 8.8 and version 9 (two separate LANDesk core servers). The problem I'm seeing (I think) is that the UAC is stopping the programs from running (even though UAC is as disabled as much as it can be). LANDesk Management Suite downloads the scripts to the machines successfully using a pull-based technology, and then executes the scripts with the local computer SYSTEM account. The programs never display anything until I logout and log back in. I then get a message from Windows 7 telling me that there is one or more programs asking to interact with the desktop. If I allow the interaction, then Win7 goes into some sort of "secure" desktop mode (something I haven't been able to find anything about online yet), and the scripts finally show up. They can be as simple as:
by default anything set to run as admin or the #RequireAdmin statement will force that prompt to happen. There is a registry key that you can turn off which sometimes fixes the problem. It requires a reboot, but this should help.