Solved

Group Policy logoff scripts

Posted on 2012-12-27
10
810 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

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
 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

740 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