EndlessTears Posted March 5, 2018 Posted March 5, 2018 Hello Guys I been trying to run Delprof 2 to delete a profile but I am getting the error message:- Error negative age detected for profile XXXXX ignoring this profile. I have no idea what this means so can someone shed some light please. Thank you
synaesthesia Posted March 5, 2018 Posted March 5, 2018 Profile created whilst the computer's time was way out, likely in the future. Manual deletion of the files should suffice in that instance.
EndlessTears Posted March 5, 2018 Author Posted March 5, 2018 Thank you synaesthesia. I've found this on several different computers, so was hoping to avoid deleting them manually. (using Delprof 2 remotely) Also all our computer clocks are set via NTP from the domain controller so they are kept in sync.
dapaulio Posted March 5, 2018 Posted March 5, 2018 Can’t say for certain but I cant see it being the computer clocks being out. Login wouldn’t have worked at all therefore the local cached profile wouldn’t have been created in the first place If you remove the age switch from your script does go ahead and delete the profile. Or does it still error???
EndlessTears Posted March 6, 2018 Author Posted March 6, 2018 Hello Dapaulio We dont use the Age switch in our script.
rosslaing Posted March 6, 2018 Posted March 6, 2018 It uses the last modified date on the ntuser.dat file so you should be able to see the date it is reporting as a negative. What date is on the .dat file on one of these profiles? 2
dapaulio Posted March 6, 2018 Posted March 6, 2018 Is your time zone different between the computers that your remotely clearing and the computer you are using?
EndlessTears Posted March 7, 2018 Author Posted March 7, 2018 Hey guys all sorted thank you for your contribution, the solution was the one suggested by Rosslaing. Turns out the .Dat file was last modified in 2053, how that happened no idea. Thank you again for the help.
dapaulio Posted March 14, 2018 Posted March 14, 2018 You can use the ntuser.ini to calculate the age by including the switch /ntuserini in your script Must be a glitch that they are aware of. Can’t think why they would include this switch for any other reason
newpersn Posted April 17, 2018 Posted April 17, 2018 anyone else have problems with this? keep getting: Deleting profile '\\LIB-16\C$\Users\' ... Could not delete key . Error: Access is denied.
dapaulio Posted April 17, 2018 Posted April 17, 2018 (edited) Is this just happening on lib-16 computer? Does it error on more than one user on lib-16? What user are you running Delprof under? Try running under system user Confirm the key permission by going in to regedit. It will likely be referring to the user’s hive Can you delete the profile in the gui. System properties, advanced tab, profiles Edited April 17, 2018 by dapaulio
newpersn Posted April 17, 2018 Posted April 17, 2018 Is this just happening on lib-16 computer? Does it error on more than one user on lib-16? What user are you running Delprof under? Try running under system user Confirm the key permission by going in to regedit. It will likely be referring to the user’s hive Can you delete the profile in the gui. System properties, advanced tab, profiles Nope. Quite a few machines keeps happening. Running it remotely from my machines as administrator (Right click run as) Will try when i'm near that machine.
dapaulio Posted April 17, 2018 Posted April 17, 2018 Iv never experience the problem you are having but a couple more suggestions I have found even domain/local administrators don’t have permission to remove certain reg keys Also try restarting the computer and trying again. Sometimes reg keys get locked
PotNoodleTech Posted April 17, 2018 Posted April 17, 2018 Tried using the /i switch which should ignore errors and continue deleting?
Carm01 Posted April 17, 2018 Posted April 17, 2018 We successfully use the following run from Altiris: C:\delprof2\delprof2.exe /ed:administrator /ed:public /ed:default /ed:localadmin /q /i it should ignore errors, however, if a user is logged in it cannot delete the logged in/locked account. We usually re-boot prior and have not had any issues deleting profiles. Did you post an example of your code , as it would be extremely helpful ? 1
dapaulio Posted April 17, 2018 Posted April 17, 2018 We use a similar code with the additional age switch in a shutdown script c:\delprof2\delprof2.exe /ed:domainadmin /ed:localadmin /d:30 /q /i Public and default are protected profiles so are already exempt Maybe using the age switch may help mitigate the errors if it is a locked profile
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now