Home > Archive > General Discussion > October 2003 > Executing a logon/logoff script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Executing a logon/logoff script
prezbedard

2003-10-15, 3:22 pm

I have been working on a logon/logoff script for some time now. I have the script working as it should. The problem is getting it to execute properly when users logon/logoff

I have a W2K DC with a test OU.
I placed the script in the OU's GPT.
I added the script as a logon script.
I refreshed policy on both the server and client. The script still does execute at logon.

I also have it set so the script will run visible so I can tell if it does indeed run or not.

I have repeate this mutiple times. I still get no results. It does work if I put it in the user profile. The solution is not practicle for a couple resaons. First I have over 200 accounts that need the script and second that would only work at user logon and not logoff.

Any feedback is greatly apprieciated.

Thanks.
Tarzanboy

2003-10-15, 3:58 pm

Aside from making sure the script is in a readable format (.bat,.vbs,.wsf, etc) the key is to make sure that the script is mapped to a share that is accessible to the user that is to run the logon/logoff script.

When adding the file into the GPO, there are two methods of doing this:
1. Copy the file into the SYSVOL, use the Show Files button in the Logon (or Logoff) Properties to place the script in there.
2. Copy the file into a share that the user can access and map the script in the Logon (or Logoff) Properties to the location of the script.

\\root\shared\script.vbs
or
\\172.17.217.2\shared\script.wsf

Cheers.
TB
prezbedard

2003-10-15, 4:19 pm

I did #1 and the script is also in the
NETLOGON share.

Do I need to
quote:
map the script in the Logon (or Logoff) Properties to the location of the script.
as well if the script is in the NETLOGON?
Tarzanboy

2003-10-15, 6:25 pm

Correct, if you do not have the location specified in the scripts (logon or logoff) the system or user will overlook it thinking that it is not intended for them.

On the Netlogon share the script name would be \\domain.com\SysVol\domain.com\scripts\scriptname.vbs

Cheers,
TB
prezbedard

2003-10-15, 9:57 pm

ok Its still not working after making the change. I even rebooted the client pc i'm using for testing.

Here is what I have. The scriot is in the
GPT folder "show files" the script defined in GP is

\\domain.com\SysVol\domain.com\scripts\scriptname.bat

The script is in the NETLOGON of the logon server. I am able to run it manually as the user so its not a permission issue.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2009 examnotes.net