Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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???

Posted
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?
  • Thanks 2
Posted

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.

Posted

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

  • 1 month later...
Posted (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 by dapaulio
Posted
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.

Posted

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

Posted

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 ?

  • Thanks 1
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...