Trying to copy an inf file in Windows 7 pro

Running Windows 7 pro on HP z230.

I am trying to copy an file named autorun.inf from one directory to another.  I can copy all files except this one.
I right click on the autorun.inf file, click on Copy, then move to the destination directory and click paste.  I get the message “File Access denied”.  

I then log in as administrator and try to copy the file.  Same message.

I right click on the inf file and click on Properties.  I click on Security.  It tells me I must have administrative permissions.  Well, I do, I am logged in as administrator.   The administrator account name is donadmin

The next screen shows ownership.  Under current owner it says : “unable to display current owner”.  This file did come from an old computer which used to be connected to a domain.

So I try to change the owner.  I click on “Other users or groups” In the box labeled “Enter the object name to select”  I type in donadmin.  The name is verified to be correct.  I click on OK to exit the “Advanced Security settings for Autorun.inf” and I get the error:  Unable to set new owner on Autorun.inf.

I have the same problem for all the inf files I want to copy.

What must I do to successfully copy this inf file??
donpickAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

NVITEnd-user supportCommented:
Have you tried takeown?

https://technet.microsoft.com/en-us/library/cc753024(v=ws.10).aspx

takeown /f Autorun.inf /a
RaminTechnical AdvisorCommented:
Disable your Antivirus and try again.

Or do it in safe mode.

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
nobusCommented:
did you try the copy from an elevated command prompt?
you can also try this in safe mode
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

BillDLCommented:
Can you open the autorun.inf file in Notepad?

Usually the Right-Click > Edit will open it in Notepad, but if not, just open Notepad > File menu > Open > browse to the autorun.inf file.
With it open, you should now be able to do a File > Save As > and choose "All Files".  If you type the full name autorun.inf it will save it as an *.inf file instead of a *.txt file wherever you want it.

You will lose the original file properties, but it sounds as though you aren't really interested in keeping these anyway.

Ramin may be correct about the Antivirus application blocking this action.  Autorun.inf files have been used for many years to automatically run malicious programs from removeable drives when inserted.  Do you know what this particular autorun.inf file is configured to run?
donpickAuthor Commented:
Yes, Ramin, you are correct.  I researched this problem more after posting my question.
It seems many people have this problem.  Apparently the anti virus locks all autorun.inf files very tightly.  I can understand why.  

Even when I logged into my computer as administrator, it was still impossible to copy the files.  And, every time I tried to open an autoexec.inf file,  I kept getting the message “access denied”.

Unfortunately Trend Micro consumer version seems to have no way to disable the anti virus so I had to manually copy the files in safe mode.

Thanks to all who answered.  I appreciate all your help.
RaminTechnical AdvisorCommented:
You're welcome, I'm glad we could help.
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.