Torgeir
Mon Jul 25 06:10:18 CDT 2005
Bobba77 wrote:
> How can I use the runonce key in the reg to prevent a script
> I've created that is enabled in group policy to delete a printer
> from each machine on the lan from running more than once?
Hi,
I assume you have the script in a user logon script or computer
startup script.
I solve this type of issues by creating a registry marker (either in
HKCU or HKLM depending on this is a per user or per computer script).
Next time the script runs, if it finds the registry marker, it doesn't
do anything.
An example here:
http://groups.google.co.uk/group/microsoft.public.windowsupdate/msg/88c6e4e5317f24c9?dmode=source&hl=en
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx