Solved

Group Policy logoff scripts

Posted on 2012-12-27
10
798 Views
Last Modified: 2012-12-27
Hello,

I have a Group Policy logoff vbs script that runs successfully when users log off of the network. The vbs script deletes all user and system temporary files, folders and internet temporary files when they log off of the network daily. My plan is to add to vbs script to also remove user's desktop files and local profile files when users logoff the network.

What i'm trying to figure out is .... do group policy logoff scripts execute before or after a copy of the local profile is written back up to the server. What is the normal order? If i'm going to modify the vbs script as mentioned above I would like to ensure that the local profile is written back up to the server first before the group policy executes the logoff script. My internet research so far has not provided me a decent answer.

thanks in advance.
0
Comment
Question by:jslaught
  • 6
  • 4
10 Comments
 
LVL 9

Expert Comment

by:newmath
ID: 38724849
0
 

Author Comment

by:jslaught
ID: 38724919
Thanks for your feedback but I think you misunderstood my question. I don't have a problem with the vbs script as it works successfully from the Group Policy. I'm just trying to get an answer on if local profiles get saved up to the network before a group policy script is ran during logoff.
0
 
LVL 9

Expert Comment

by:newmath
ID: 38724932
Are you using roaming profiles?
0
 

Author Comment

by:jslaught
ID: 38724958
Yes we use roaming profiles.
0
 
LVL 9

Expert Comment

by:newmath
ID: 38725025
Ah, ok. Logoff scripts run before profile data is copied.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 9

Accepted Solution

by:
newmath earned 100 total points
ID: 38725030
I'm not sure if this helps you, but there's GPO setting that you can set to not cache a local copy of a user's profile.
0
 

Author Comment

by:jslaught
ID: 38725078
Thanks. So now that I know that logoff scripts run before profile data is copied... there is no way to reverse that? allow profile data to be copied and then delete it? If not then i'll have to think about my other options with this.
0
 
LVL 9

Expert Comment

by:newmath
ID: 38725100
Not that I am aware of. That's baked into AD. Not interested in the local cache disable GPO?
0
 

Author Comment

by:jslaught
ID: 38725157
I just did a quick read on your disable local cache via the GPO suggestion above and that will handle what i'm trying to do. Thanks again for your assistance and knowledge.
0
 
LVL 9

Expert Comment

by:newmath
ID: 38725194
Sounds good. No problem.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now