P
Pegasus \(MVP\)
Chris Guimbellot said:Hello,
How do you assign a script to a user or a computer to run only one time,
such as the GUIRunOnce script during Win2K unattended setup does? Group
Policy setting possibly?
Thanks,
Chris
You need to create some flag that indicates that the script
was run before. Here is a solution that relies on a flag file:
@echo off
if not exist c:\ScriptFlags md c:\ScriptFlag
if exist c:\ScriptFlags\abcxyz.flag goto :eof
.. . . . (your installation script goes here)
echo %date% %time% %UserName% > c:\ScriptFlags\abcxyz.flag
This file must reside in a central location (e.g. in
\\YourServer\Netlogon) and must be invoked by the
user's logon script. For each new installation you
use a new flag file name abcxyz.flag.