On a windows 7 enterprise 64 bit OS - I want to change ownership of a folder inherited to all sub-folders using ICACLS
I am logged in as standard user. The folder is owned by an administrator user, and I run the icaclsas that elevated user's command prompt I am not all very privy with windows but I want to do this as standard user running an elevated cmd
so this is what I tried and did not work
ICACLS name /setowner <computername>\adminuser Before that I used icacls to grant F to adminuser and it succeeded.
What did not succeed is changing owner from the command prompt using icacls and the command prompt is from a user who owns the folder. So the folder owner is running icacls and making another user the owner. I get this error
setowner No mapping between account names and security IDs was done. Successfully processed 0 files; Failed processing 0 files