[gptalk] Re: Determining Who Has Run a Login Script

  • From: "Gray Troutman" <jgraytroutman@xxxxxxxxx>
  • To: gptalk@xxxxxxxxxxxxx
  • Date: Mon, 22 Oct 2007 13:18:50 -0700

oops...forgot a space...that should be:

echo %username% >> \\YourDC\NETLOGON\ScriptLogs\WhoHasRunTheScript.log




On 10/22/07, Gray Troutman <jgraytroutman@xxxxxxxxx> wrote:
>
> Just curious, but wouldn't it be easiest to add this line to the start of
> the login script:
>
>
> echo%username% >> \\YourDC\NETLOGON\ScriptLogs\WhoHasRunTheScript.log
>
> (it doesn't have to be a subfolder of netlogon, just a folder which you
> give everyone write capabilities to)
>
>
>
>
> On 10/22/07, Martin Hugo <Martin_Hugo@xxxxxxxx> wrote:
> >
> >  You could fire the script with a simple batchfile.  The first line of
> > the batchfile could check for the existence of a text file on the client, if
> > the file is present, just exit the batchfile doing nothing, if not, run the
> > script and create the textfile that the first line checks for.  You could
> > further have it append the <computername> to another text file on a server
> > somewhere which would then list all the machines that it fires the script
> > on.
> >
> > Martin T. Hugo
> > Network Administrator
> > Hilliard City Schools
> > Tel: 614-921-7102
> > Martin_Hugo@xxxxxxxx
> >
> > * gptalk@xxxxxxxxxxxxx writes:
> > *Hi –
> >
> >
> >
> > We want to run a little logon script (or maybe startup script) to
> > install fonts and make a reg change. Is there an easy way to "log" who has
> > run this script? I thought about writing a line to a shared text file but
> > have not had much luck with that. This would affect about 100 computers.
> >
> >
> >
> > Thanks.
> >
> >
> >
> >
> >
> >
> >
>

Other related posts: