well, I'm glad to have you guys here, because at least I know I have someone to fall back on when I'm stuck ... guess what.. I'm stuck!! \:\)

I've been recently writing a series of small projects, which will hopefully get all bundled together, for my school district, so that I fully automate the setup of lab machines, and others.

In order to do this, I'm dealing with a lot of script tracking upon reboots , to track which reboot I'm at, and what tasks need to be done, and when to do the cleanup after the work has been done.

I'm using AdminScriptEditor, and am bundling the scripts that contain elevated privilege account in EXE files.
The problem I'm having is that I am not able to get these scripts to run upon reboot. I have tried 3 methods:
1- on the initial script, I make a copy of that script to the Documents and settings\All Users\Start Menu\Programs\Startup, hoping that it would run -- that's a no go. nothing happens on the reboot.

2- Tried to place the path to the script in HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce. That seems to run, only once, upon reboot, my script runs again, and it re-places the entry in the RunOnce key, but yet, nothing runs on subsequent reboots.

3- Tried to place the path to the script in HKLM\Software\Microsoft\Windows\CurrentVersion\Run. That apparently just starts the exe as a process, but doesn't really execute it. (I had even tried to place the /d parameter when compiling it), just to make sure I'm not missing it running, also tried without /d.

I know that the script runs, because if I just run the exe manually, it seems to do what it's supposed to, but manually isn't enough, as it's part of an automated setup process.

Has any of you seen this problem with Windows? or is this something specifically with Kix files? I still haven't tried to write a batch file and trigger the KIX script straight from the source code, instead of the compiled exe. would that be worth a try? or am I missing something blatantly obvious?

Sorry for the long post, I'm hoping to be able to find some answers to this.

Thanks in advance for your help !
_________________________
Network Specialist
Chino Unified School District