mbudman
asked on
Run script once using group policy
Hello,
I would like to run a script (or batch file) once (per user or computer, whichever is easier)) preferably using group policy.
The script is to delete a registry key and its subkeys.
The environment consists of Windows 7 client workstations connected to a Windows 2003 Active directory network.
I would like to delete this key once per computer
HKCU:\Software\Microsoft\W indows NT\CurrentVersion\Windows Messaging Subsystem\Profiles
Can this be done? If so, how?
Thanks in advance.
Mark
I would like to run a script (or batch file) once (per user or computer, whichever is easier)) preferably using group policy.
The script is to delete a registry key and its subkeys.
The environment consists of Windows 7 client workstations connected to a Windows 2003 Active directory network.
I would like to delete this key once per computer
HKCU:\Software\Microsoft\W
Can this be done? If so, how?
Thanks in advance.
Mark
You could use group policy to write a registry key to add the script to runonce and have that policy apply and not get reapplied.
ASKER
The problem is that "runonce" is not executed when someone connects to network via VPN.
All I would like to do is run delete a registry key once per computer.
The registry key in question contains the configuration information for a particular program. If the key is deleted (or does not exist), the program automatically runs the set up wizard, which is what I want to happen.
However, I do not want the set up wizard to run all the time - just once per computer.
All I would like to do is run delete a registry key once per computer.
The registry key in question contains the configuration information for a particular program. If the key is deleted (or does not exist), the program automatically runs the set up wizard, which is what I want to happen.
However, I do not want the set up wizard to run all the time - just once per computer.
Ok, I am really not familiar with networks via VPN so do scheduled tasks work across the VPN? If so then use group policy to create a scheduled task that executes once.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your assistance.