#189670 - 2008-09-15 06:35 PM
Logon Script Running exe
|
D3V1Li5H
Just in Town
Registered: 2008-09-15
Posts: 1
|
Hi All,
We have quite a big KIX logon script being run for our users as part of group policy. I have been trying to get it to run an exe using the "Run" command which will execute our PC auditing software. When the exe is run, it sits in memory for 10mins before it begins to audit the machine.
What appears to be happening at logon is that the kix script runs and executes the auditing .exe fine, and continues through the rest of the script., but when it completes it closes and then shortly afterwards the audit .exe terminates also before it has ran the audit.
Running the same script manually after logon runs and executes perfectly, i.e. the kix script terminates but the audit exe continues to stay in memory and runs its audit.
Has anyone come across this before? Is it to do with some type of difference with the run environment when running through Group Policy or at logon? Any help would be greatly appreciated.
Thanks in advance, Jay
|
Top
|
|
|
|
#189693 - 2008-09-16 01:41 PM
Re: Logon Script Running exe
[Re: BradV]
|
Glenn Barnas
KiX Supporter
Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
|
Brad's pretty much on target, but with a scheduled task.. You can control what runs, the account used to run the task, and when it will run. WHEN is the real issue, so rather than taking a chance that the system is up at a certain time, create an AT STARTUP task. Task events can even be configured to run at low priority, and delete themselves when done.
I'd script in a 3-5 minute delay when the script launches, since there are lots of things going on at system startup that compete for processor resources. AT STARTUP runs tasks after the system is initialized, but at the same time that the Run and RunOnce reg keys are processed, so a short delay would make the system appear more responsive, minimizing user complaints about slowness.
Run and RunOnce reg keys are OK if the task should/can run in the user's security context. You have less control over how the task runs than through the scheduler. BTW - Win2K8 makes heavy use of the AT STARTUP capability in the scheduler.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 507 anonymous users online.
|
|
|