#144731 - 2005-08-03 09:16 PM
Is There A Script That Will Delete The ntuser.pol.tmp Files??
|
giant45man
Fresh Scripter
Registered: 2001-11-29
Posts: 10
|
Is there a logon script that I can use that will delete the ntuser.pol.tmp, ntuser.pol.tmp.tmp, etc, from the user profiles folder?
|
|
Top
|
|
|
|
#144733 - 2005-08-04 10:13 AM
Re: Is There A Script That Will Delete The ntuser.pol.tmp Files??
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
|
|
Top
|
|
|
|
#144734 - 2005-08-04 06:57 PM
Re: Is There A Script That Will Delete The ntuser.pol.tmp Files??
|
giant45man
Fresh Scripter
Registered: 2001-11-29
Posts: 10
|
The ntuser.pol.tmp files appear in the root of the affect users "Profiles" folder/directory. I have looked at that Microsoft article before, I even applied the hotfix the way they tell you to, but I still have users that are getting the ntuser.pol.tmp files. I was hoping to get a login script that would delete these files. Can anyone help me?
|
|
Top
|
|
|
|
#144735 - 2005-08-04 08:04 PM
Re: Is There A Script That Will Delete The ntuser.pol.tmp Files??
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Well, untested but perhaps something like this would work.
Code:
SHELL '%COMSPEC% /e:1024 /c DEL /S /F /Q ' + '%%USERPROFILE%%'+'\*.TMP'
|
|
Top
|
|
|
|
#144736 - 2005-08-04 08:35 PM
Re: Is There A Script That Will Delete The ntuser.pol.tmp Files??
|
giant45man
Fresh Scripter
Registered: 2001-11-29
Posts: 10
|
I tried this code:
SHELL '%COMSPEC% /e:1024 /c DEL /S /F /Q ' + '%%USERPROFILE%%'+'\*.TMP'
and it did not work. Any ideas?
|
|
Top
|
|
|
|
#144738 - 2005-08-05 04:23 PM
Re: Is There A Script That Will Delete The ntuser.pol.tmp Files??
|
giant45man
Fresh Scripter
Registered: 2001-11-29
Posts: 10
|
Quote:
there still is no such dir as users "profiles"
I might have misued the term "profiles", that is what the directory that holds the users environment is called, however, the actual name as it exists on the server may be different. The folder that I am referring to is found on the PC's "C" drive in the following path: c:\Documents and Settings\%username%
Where %username% is a variable that means the logon name for the user, (i.e. if one user's logon name is lsmith, the path to his profile is c:\Documents and Settings\lsmith). The problem I am having, using lsmith as an example, is that in the following path c:\Documents and Settings\lsmith, ntuser.pol.tmp files are being recreated over and over until it prevents the profile from being loaded properly. Since we are using roaming profiles, these temp files are being uploaded to the server whenever the user logs out. I already tried the Microsoft hotfix/patch and it doesn't work. I was hoping someone new of a script or code that would delete these files at logon or logoff. Hopefully this explanation makes things alot clearer. Let me know if it doesn't. Thanks
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|