We help IT Professionals succeed at work.
Get Started

How do I delete files on Win Server 2k8R2?

it_medcomp asked
Last Modified: 2016-02-03
I have some files on a Windows 2K8R2 server that will not delete.
All steps are logged in as the domain Administrator account. All command prompts are elevated.
The files are placed by a Ricoh that scans and saves to SMB share on the network. The filenames are alphanumeric. Most have spaces in them, but for testing, I used mostly files with just letters and numbers in the name. Filenames are less than 30 characters, and the network share is a short path as well- in
E:\scans\QC, shared with a servername that is 10 characters long.
net localgroup administrators shows Domain Administrators.
Delete = Access Denied, using the delete key, shift-delete, or right-click delete.
Gui says it cannot display owner information, will not allow take ownership or change owner
attrib lists all files with only the "A" attribute.
attrib *.* -R -A -S -H generates a list of Access Denied next to each filename.
takeown /F filename.pdf /R /A /D Y results: Access Denied
also tried the above using dir /X to get the 8.3 filename- same results
at some point in the past, we were able to delete and recreate the folder, and the results are the same.
Going to the File Sharing role in Server Manager and listing all of the open files does not show any of the files listed in this folder.
Any ideas what else to try, or what the root cause might be?
Watch Question
Business Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
This problem has been solved!
Unlock 1 Answer and 22 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE