Logout Script to Delete file

Posted on 2008-11-10
Last Modified: 2012-08-14
I have a group of users who access remotely through rdc/terminal services.  I have recently been having a problem where the template file for Word ( is constantly getting corrupted and causing Word and Outlook to bomb.

I can't figure out why this is happening, but I know if I delete the file and let it recreate itself the next time the user logs in, the problem goes away (at least for a period of time).  I want to try to figure out why this is happening, but in the meantime, I would like to insert a logout script for these users to delete from their local Documents and Settings when they logout, thus creating a new one every time the user logs in.

I am not a programmer, but I think this is a fairly simple thing I want to do.

Can anyone give me some guidance as to how to attack this?

Question by:david_ackerman
    1 Comment
    LVL 38

    Accepted Solution

    There is a lot of good information here:

    Since this is a global template file, you might consider creating your settings and saving this as your template. Then, making this template a read only file.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    [b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

    729 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

    19 Experts available now in Live!

    Get 1:1 Help Now