Re: Logon script not working

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Bert" <Bert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:DAFAA871-7464-4279-B054-15345ACCB8C3@xxxxxxxxxxxxxxxx

Ok, I see what you mean about the log. Thanks for clarifying that.

It appear that you pasted it in the right spot. I assume where you pasted the logon.cmd file, it was in the following path (note: this is an example and your GUID would be different):

C:\WINDOWS\SYSVOL\sysvol\domain.com\Policies\{BD0979BF-E009-4AE4-9BFC-5CC5D991FAB1}\User\Scripts\Logon

Where did you link the GPO to, in the OU where the users exist?

Can you post what's in the logon.cmd file, please?

Thanks,
Ace



Thanks for the help:

One thing I read stated an easy way to put the .cmd file in GPO was to open
the Show Files and paste it there. I did this, and I should say it is in
there and when I click on Add and Browse, it is also there. I wasn't sure
where to keep the .cmd file and I figured it was actually physically located
in the GPO window, but maybe it isn't. At this time, it is in the same folder
as the logon.log.

This website shows that the actual log file should be located at

\\dc1\share where dc1 for me is server and share is logons

http://msmvps.com/blogs/richardwu/archive/2007/05/29/logging-user-logon-event.aspx

"Ace Fekay [MCT]" wrote:

"Bert" <Bert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7B3AC2DF-91AF-405D-A33A-4E46D8278044@xxxxxxxxxxxxxxxx
> Hi. I have made a logon.cmd file and put it in the Logon window in GPO.
> When
> I manually run it, it adds the login information of the server. I can
> browse
> to the logon.log file from clients and even run a command from the > command
> prompt:
>
> echo "testing1" >> \\server\logons\logon.log and that works where > server =
> server name and logons is the share.
>
> It seems the only thing that isn't happening is when a user logs on, it
> isn't running the logon.cmd file in Group Policy.
>
> Any suggestions?

When you say you put the file in the logon window in GPO, do you mean that
you physically copied it into the physical location of the GPO after you
clicked on the Browse button? When you click on browse, it first puts you
into the GPO's location in Sysvol.

Normally an easy way to get a file into where logon scripts belong in a GPO,
is after you click on browse, go to another explorer window, go to the
location that your copy of logon.log (was that the name of it? - your UNC
example shows logon.log, not logon.cmd) or where logon.cmd exists,
right-click and copy it, then go back to the GPO logon file browse window,
and paste it in there, then once pasted, select it for your login script.

I assume there are no event log errors on the client side or the SBS side,
as well as that the client and SBS are only configured to only use the SBS'
IP as a DNS address (meaning there is no ISP's DNS, router as a DNS address,
or some external DNS server in their IP properties).

--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Please reply back to the newsgroup or forum for collaboration benefit among
responding engineers, and to help others benefit from your resolution.

Ace Fekay, MCT, MCTS Exchange, MCSE, MCSA 2003 & 2000, MCSA Messaging
Microsoft Certified Trainer

For urgent issues, please contact Microsoft PSS directly. Please check
http://support.microsoft.com for regional support phone numbers.




.



Relevant Pages

  • Re: Logon script not working
    ... any logoff script. ... specify the file name in a test user's AD properties (profile tab, logon ... running the logon.cmd does show the logon for the server. ... Which brings me to your question: Where did you link the GPO to, ...
    (microsoft.public.windows.server.sbs)
  • Re: Logon script not working
    ... I edited the Default Domain Policy ... If I click on Show Files in that window, ... From the looks of it, other than the Acronis Remote GPO, which I assume ... So far we know the legacy method (Netlogon folder and specifying the logon ...
    (microsoft.public.windows.server.sbs)
  • Re: Why domain logon is so slow for XP clients which are just rebo
    ... could check any process that is interfering with the pc startup process, ... objects in the site may have different GPO applied. ... When you ping the server what is the response time /ms. ... you do not logon, just wait for couple mins and log back on, then it is ...
    (microsoft.public.windows.server.active_directory)
  • Re: Why domain logon is so slow for XP clients which are just rebo
    ... the sites and subnets have been configured correctly and running fine. ... objects in the site may have different GPO applied. ... When you ping the server what is the response time /ms. ... why the domain logon is so slow for one site in AD ...
    (microsoft.public.windows.server.active_directory)
  • MMC.exe stops responding for up to 5 minutes during AD GPO browse / edit
    ... Editing GPOs on our Windows 2000 SP4 Server takes up to ... Open "Folder Redirection", right click on "My Documents" and click ... Wait 5 minutes for the properties window to appear ... this problem ONLY happens when I edit a GPO while working on ...
    (microsoft.public.windows.group_policy)