Can't get access/ownership to folder

I am troubleshooting  can't turn on window search service. So I am trying to get access to  C:\ProgramData\Microsoft\Search\Date\Applications
C:\ProgramData\Microsoft\Search\Date\temp
Access is being denied (even with admin password)
I changed ownership from system to administrator and added administrator to security with full permission applied. then when re opened the properties the ownership was back to the system and administrator removed from the security list.
Please help
LVL 4
Abraham DeutschIT professionalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

William FulksSystems Analyst & WebmasterCommented:
Do the take ownership on the Search folder and select "replace owner on subcontainers and objects" to get the folders underneath.

Then reboot your PC to let it rebuild your search indexes.

Did you get some malware that hijacked this? I'd do a full AV and malware scan, too.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
The folder which needs to have proper permissions on it is ‪C:\ProgramData\Microsoft\Search\Data

The two subfolders (Applications and Temp) should just inherit the permissions from the parent.

The ownership of the Data folder is SYSTEM by default, which is fine, and normally it only has permissions for SYSTEM, but if you attempt to browse you will see this error message:

Permissions
Just clicking "Continue" should add your credentials and the "Administrators" group credentials -- as long as you are logged into the computer with an account that is a member of the administrators group.

If this is not working then you have a problem overall and possible malware which can create problems such as this.
Abraham DeutschIT professionalAuthor Commented:
Somehow not sure how once I changed the promising of the search folder to administrator did a restarted the ownership want back to system but I am able to access the two folders that where restricted before.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.