Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Active Directory » Cannot run a batch file for logon/logoff
Cannot run a batch file for logon/logoff [message #360163] Tue, 05 January 2010 14:14 Go to next message
Bobson  is currently offline Bobson
Messages: 20
Registered: August 2009
Junior Member
Hi everyone,

Thank you very much for your help in advance.

I wrote a script and put it in our group policy/user/scripts/logon/logoff. I
make sure both "show files" and "the field" points to the same file. However,
the script never run.

In the script, I put down:

@echo off
@echo The script is running
del "%userprofile%\Cookies\*.*" /s /q
del "%userprofile%\Local Settings\Temporary Internet Files\*.*" /s /q

I just tried to remove the temp files eveytime the user log off. This does
not even run. I am pretty sure I put in a right OU with a right user.

Hope you can help.

Thank you.

Bobson
Re: Cannot run a batch file for logon/logoff [message #360193 is a reply to message #360163] Tue, 05 January 2010 14:46 Go to previous message
pbbergs  is currently offline pbbergs  United States
Messages: 1024
Registered: July 2009
Senior Member
How is the script included in the gpo? Usually when something like this
fails the script is inaccesible at logon time.

Check out Petri and Mueller, two mvp's that detail the steps needed
http://www.petri.co.il/setting-up-logon-script-through-gpo-w indows-server-2008.htm
http://www.rlmueller.net/LogonScriptFAQ.htm

--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
Microsoft's Thrive IT Pro of the Month - June 2009

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup This
posting is provided "AS IS" with no warranties, and confers no rights.

"Bobson" <Bobson@discussions.microsoft.com> wrote in message
news:FF9B6D0A-0FB6-421F-A3EA-23D5B80C8D89@microsoft.com...
> Hi everyone,
>
> Thank you very much for your help in advance.
>
> I wrote a script and put it in our group policy/user/scripts/logon/logoff.
> I
> make sure both "show files" and "the field" points to the same file.
> However,
> the script never run.
>
> In the script, I put down:
>
> @echo off
> @echo The script is running
> del "%userprofile%\Cookies\*.*" /s /q
> del "%userprofile%\Local Settings\Temporary Internet Files\*.*" /s /q
>
> I just tried to remove the temp files eveytime the user log off. This does
> not even run. I am pretty sure I put in a right OU with a right user.
>
> Hope you can help.
>
> Thank you.
>
> Bobson
Previous Topic:Time Sync
Next Topic:NTDSUTIL Roles different than shown with LDIFDE
Goto Forum:
  


Current Time: Fri Jan 19 00:43:22 MST 2018

Total time taken to generate the page: 0.03853 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software