How do I craft a logon script/batch file to run only once applied through the
GPO ?
You can't, as Group Policy logon/startup scripts will always execute on
startup. But you can have a workaround: execute the script and after its
initial completion, create a textfile or whatever to check for when
executed once more. By checking then for the file, you'll be able to
tell whether the script got executed before or not.
cheers,
Florian
--
Nachwuschsadmin aus dem Süddeutschen/Germany.
eMail: Vorname [bei] frickelsoft [Punkt] net.
blog: http://www.frickelsoft.net/blog.
.
Re: Will Linux become as vulnerable as MS ?? ... > beeing vulnerable to viruses.... > that they know are executable, and execute intentionally.... >> Linux, each distro is a little different, and even within the distro, ... > Since clicking on a script is easier than typing it's name, ... (comp.os.linux.security)
Re: [Full-Disclosure] ColdFusion cross-site scripting security vulnerability of an error page ... > execute the arbitrary javascript and HTML code which the attacker ... > It is possible to display the contents transmitted from the client ... > cross-site scripting attack can be executed. ... the script will be executed when the script for an attack ... (Full-Disclosure)
CGIscript.net - csMailto.cgi - Remote Command Execution ... CGIscript.net - csMailto.cgi - Remote Command...csMailto is a perl cgi formmail script developed by ...execute command on server and mail output to anyone ... (Bugtraq)
Re: Extracting data from an XML to put into a constant ... ExecuteGlobal "Const cnUB = 9" ... The following script causes the same error. ... Ordinary variables and constants defined with execute statements have ... no value until their defining statement is executed at run time. ... (microsoft.public.scripting.vbscript)
Re: HTTPContext Session and worker thread (Fire and Forget) ... Once the page is loaded on the client side, make the request via script... To kick of the job you insert record into tblJobs with MessageIn having ... not execute job cause it was grabbed by other pooling thread between step 1 ... (microsoft.public.dotnet.framework.aspnet)