Re: run once logon script



khmmc wrote:
Thanks for an answer. You would think that MS would have some facility to do this. Do you have a rcommendation as to where the semaphore text file should be created, it will be run by multiple workstations/users ?

"Florian Frommherz" wrote:

Howdie!

khmmc wrote:
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.

It should be out of the way, not on users desktops :-). Obviously, if it needs to run once per user it should go into something specific to that user, like "documents and settings\%username%" or something. Or if it just needs to run once per machine, wherever you think it will be safest. You can also have the script write to a file or create a file on a server so you'll know when all of the machines/users have run it.

....kurt
.



Relevant Pages

  • Re: run once logon script
    ... Florian Frommherz wrote: ... 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. ...
    (microsoft.public.win2000.group_policy)
  • 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)

Loading