[gptalk] Re: Determining Who Has Run a Login Script
- From: "Jakob H. Heidelberg" <jakob@xxxxxxxxxxxxxxx>
- To: <gptalk@xxxxxxxxxxxxx>
- Date: Mon, 22 Oct 2007 22:39:38 +0200
SYSTEM wouldn't be able to access the network I guess - NETLOGON can be
"opened" with NTFS rights, but I wouldn't recommend this of course. Use
another share somewhere!
The ECHO method is OK (and other writes to flat files), but exactly WHAT
happens when 2 users try to write to the file at once - write failure for
one of them is my guess.
Best regards
/Jakob
From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of EIS Lists
Sent: 22. oktober 2007 22:32
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Determining Who Has Run a Login Script
This is what I was thinking. However, I believe NETLOGON is write protected,
no? If it runs as a Startup (rather than a login) script, it runs under the
System account, right? That should be able to write to netlogon.
From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Gray Troutman
Sent: Monday, October 22, 2007 1:19 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Determining Who Has Run a Login Script
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
<mailto: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.
- Follow-Ups:
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Gray Troutman
- [gptalk] Re: Determining Who Has Run a Login Script
- From: MONTGOMERY, RONALD [AG/1000]
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Nelson, Jamie R Contr 72 CS/SCBAF
- References:
- [gptalk] Determining Who Has Run a Login Script
- From: EIS Lists
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Martin Hugo
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Gray Troutman
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Gray Troutman
- [gptalk] Re: Determining Who Has Run a Login Script
- From: EIS Lists
Other related posts:
- » [gptalk] Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- » [gptalk] Re: Determining Who Has Run a Login Script
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Gray Troutman
- [gptalk] Re: Determining Who Has Run a Login Script
- From: MONTGOMERY, RONALD [AG/1000]
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Nelson, Jamie R Contr 72 CS/SCBAF
- [gptalk] Determining Who Has Run a Login Script
- From: EIS Lists
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Martin Hugo
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Gray Troutman
- [gptalk] Re: Determining Who Has Run a Login Script
- From: Gray Troutman
- [gptalk] Re: Determining Who Has Run a Login Script
- From: EIS Lists