Hello everybody,
I have a question about running a startup script via GPO. OS is W2K Professional and XP. I'm trying to run a custom written program, which moves computer from one domain to another and requires 2 reboots.
1st, it copies some files to a local harddrive, moves a computer to a workgroup and reboots. Then (using copied files on a harddrive)it moves a computer to another domain, and reboots again.
Our script has 2 flavors:
suggested move, when a user gets a screen with "ok" and "cancel" (so the script will run, if a user clicks "OK"), and a forced move, when the script will run without user's interraction.
When I run this script through a login script (not a GPO), all is working fine. But I need to run it using a GPO (computer configuration).
My problem is, that after the first reboot, the computer is trying to access a startup script again, can't do it (because it doesn't have rights to a script directory anymore, it's in workgroup now) and gives an error message. The program will move a computer to a new domain anyway, I just don't want the users to get the error message.
I could probably use RunOnce option, but I need for the users to get a "suggested" version of the script every day for a week.
Sorry for the long description. Now is my question - what should I do so the computer won't try to run a startup script after the 1st reboot? Should I specify some registry key deletion in the script I'm running?
Thank you very much for your help,
Claire
I have a question about running a startup script via GPO. OS is W2K Professional and XP. I'm trying to run a custom written program, which moves computer from one domain to another and requires 2 reboots.
1st, it copies some files to a local harddrive, moves a computer to a workgroup and reboots. Then (using copied files on a harddrive)it moves a computer to another domain, and reboots again.
Our script has 2 flavors:
suggested move, when a user gets a screen with "ok" and "cancel" (so the script will run, if a user clicks "OK"), and a forced move, when the script will run without user's interraction.
When I run this script through a login script (not a GPO), all is working fine. But I need to run it using a GPO (computer configuration).
My problem is, that after the first reboot, the computer is trying to access a startup script again, can't do it (because it doesn't have rights to a script directory anymore, it's in workgroup now) and gives an error message. The program will move a computer to a new domain anyway, I just don't want the users to get the error message.
I could probably use RunOnce option, but I need for the users to get a "suggested" version of the script every day for a week.
Sorry for the long description. Now is my question - what should I do so the computer won't try to run a startup script after the 1st reboot? Should I specify some registry key deletion in the script I'm running?
Thank you very much for your help,
Claire