Avatar of Jerome Slaughter
Jerome Slaughter
Flag for United States of America asked on

Group Policy logoff scripts

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.
VB ScriptWindows Server 2003Windows 7

Avatar of undefined
Last Comment
newmath

8/22/2022 - Mon
newmath

Jerome Slaughter

ASKER
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.
newmath

Are you using roaming profiles?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Jerome Slaughter

ASKER
Yes we use roaming profiles.
newmath

Ah, ok. Logoff scripts run before profile data is copied.
ASKER CERTIFIED SOLUTION
newmath

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jerome Slaughter

ASKER
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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
newmath

Not that I am aware of. That's baked into AD. Not interested in the local cache disable GPO?
Jerome Slaughter

ASKER
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.
newmath

Sounds good. No problem.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck