1.

Solve : Elevated command prompt faiis to find path?

Answer»

Hi
I am having a problem with a elevated command prompt.
I can not find the path to an external drive using it.

Yet, it is needed to run:
net user administrator /active:yes

Which I need to successfully run:
TAKEOWN /F S:\Backup-Music\Bad-Owner\Waltz

I can find the path with the non-elevated command prompt.
Any help will be appreciated.
Frank C
Win Vista Ultimate 64 bit
Dell Inspiron 530STry this context menu add-on instead: http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/Thanks for the reply Broni,

I had INSTALLED that tool. It flashes quickly and offers no explanation of success or failure. I still cannot delete files or folders with bad owner after running it.

I was able to get ICACLS to run, using the standard cmd prompt, on the Waltz folder viz.:
ICACLS S:\BackUp-Music\Bad-Owner\Waltz /reset /T /C /L

Frank CampLet's go back a LITTLE..
What exactly are you trying to do?Thanks for the reply Broni,
My problem arose from the use of ROBOCOPY to back up my music files on a local network shared Western Digital 1 TB drive.
The backup worked OK, but on subsequent backups, Robocopy would quit when it found a file with a bad owner that it could not replace.
A sample error:
ERROR 5 (0x00000005) Deleting Extra File \\externaldrive\public\BackUp-Music\recordings\AmbroseNew\A Fine Romance-Browne.mp3
Access is denied.
The process stops there. Subsequent folders are not BACKED up.
I got around the problem by moving the bad files and folders on the external drive out of the main backup path.

In the interest of neatness I have been trying off and on for months to delete those files and folders that have the bad owner.
I tried the conventional method as administrator:
Properties > Security > Advanced > Owner > Edit > change owner to
I get access denied.
Now, I am trying to get TAKEOWN to work but as I reported It cannot find the path using an elevated command prompt.
This is not a show stopper but I would LIKE to delete the offending files and folders.
Thanks
Frank CampAddendum
Those files an folders that cause a problem have an owner of
"nobody (Unix User\nobody)"
The ones that are OK have an owner of
"Linux User,,, (EXTERNALDRIVE\everyone)"
I don't understand how Unix or Linux comes into play here unless it is a
byproduct of Robocopy.
If I look at the owner in the source it is universally:
"Frank (FRANKSPC\Frank)"What actually happens, when you try to delete those files normally?
Are you getting any errors?Sequel
Yes, The error message is "You need permission to preform this action"
That is what lead me to the DOS realm of ICACLS and TAKEOWN

I investigated my user id - Frank, It said Administrator in the description field. Yet the Account Type was ticked as Standard User. I switched to the administrator account and I was able to delete the files with the owner of Unix User\nobody.
I tried to change one of the bad owners using:
Properties > Security > Advanced > Owner > Edit > change owner to
and was denied. I could not change permissions either.

As long as I can delete the offending files I am satisfied. However, it does not clear up my confusion about ownership and permissions.
Thank You very much for your assistance Broni.
Frank CampWe can try couple more things.
First...

Download, and install Unlocker: http://ccollomb.free.fr/unlocker/
Restart computer.
It'll install under right click menu.

Open Windows Explorer.
Navigate to offending folder/file.

Right click on a folder/file. Click Unlocker
Select Delete from drop-down menu:



Click OK.
A folder/file will refuse to be deleted, but Unlocker will give you an option to delete on reboot:



Click Yes.
Restart computer.

==============================================================

If the above doesn't work, try...

LockHunter: http://lockhunter.com/

FileASSASSIN: http://www.snapfiles.com/get/fileassassin.html
Thank you Broni,
I said in my last response that I was able to delete the offending files as administrator. I didn't know that my regular ID was not administrator.
I am going to leave it at that. I will keep your advice in case of future problems.
Thanks for the help.
Frank CampYou're welcome



Discussion

No Comment Found