+ Post New Thread
Results 1 to 4 of 4
Windows Server 2008 R2 Thread, Script to delete NTUSER.DAT file from server in Technical; Hi Does anyone have a script to delete the NTUSER.DAT file from the server on logoff? At present we have ...
  1. #1

    Join Date
    Feb 2012
    Location
    Pontefract
    Posts
    35
    Thank Post
    6
    Thanked 6 Times in 5 Posts
    Rep Power
    6

    Script to delete NTUSER.DAT file from server

    Hi

    Does anyone have a script to delete the NTUSER.DAT file from the server on logoff?

    At present we have a problem when students log off that the file gets corrupted and next time they try to login that are unable able to and get the message group policy service failed the logon access is denied. I have tried to stop this happening but at present i am unable to stop it, so we are stuck reseting profiles when it happens so i'm looking for a script that will do this automactically when the students log off.

  2. #2
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,450
    Thank Post
    349
    Thanked 255 Times in 210 Posts
    Rep Power
    98
    You want the group policy settings under computer configuration > adminsitrative templates > system > user profiles (or it could be group policy folder, i forget which) but look through those anyway

  3. #3

    Join Date
    Feb 2012
    Location
    Pontefract
    Posts
    35
    Thank Post
    6
    Thanked 6 Times in 5 Posts
    Rep Power
    6
    I know which policy you are refering to but this only removes profiles form the local machine and not from the server, plus i only want it to remove the ntuser.dat file and not the whole profile as this slow the login down.

  4. #4
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,450
    Thank Post
    349
    Thanked 255 Times in 210 Posts
    Rep Power
    98
    If you delete the ntuser.dat from the server though aren't you just wiping their personal settings everytime? in which case you'd might as well just use mandatory profiles?

    Setting up a script to delete it is probably easiest but it sounds like a bit of a backwards patch to a problem rather than an actual fix

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 5
    Last Post: 1st July 2014, 08:34 AM
  2. Replies: 3
    Last Post: 22nd November 2012, 08:33 PM
  3. Replies: 5
    Last Post: 9th March 2008, 12:15 AM
  4. Replies: 1
    Last Post: 21st December 2007, 06:27 PM
  5. Replies: 3
    Last Post: 25th September 2006, 12:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •