balubeto Posted January 16, 2016 Report post Posted January 16, 2016 Hi I have Windows 10 v1511 Enterprise 64 bit with two Microsoft account. From the Command Prompt (run as administrator), I tried to write takeown /S localhost /U "<Microsoft_account_(E-Mail_Address)>" /P <User_password>" /F "<Directory_path>" /R /A /D Y but I get the "Access Denied" error. Why? Thanks Bye Quote Share this post Link to post Share on other sites More sharing options...
0 anyweb Posted January 16, 2016 Report post Posted January 16, 2016 does it work if you specify a normal user account (and not a microsoft email account) Quote Share this post Link to post Share on other sites More sharing options...
0 balubeto Posted January 17, 2016 Report post Posted January 17, 2016 does it work if you specify a normal user account (and not a microsoft email account) If I write the net user command, the profile names of the Microsoft accounts are displayed. If, however, I write takeown /S localhost /U "<Account_profile_name>" /P "<Password>" /F "<Directory_path>" /R /A /D Y Windows indicates that this user does not exist. Also, if I try to activate the hidden administrator net user Administrator /Active:yes net user Administrator "<Password>" and then I try to write takeown /S localhost /U Administrator /P "<Password>" /F "<Directory_path>" /R /A /D Y Windows always indicates that this user does not exist. So, how should I use the /U option of takeown? Thanks Bye Quote Share this post Link to post Share on other sites More sharing options...
0 balubeto Posted January 27, 2016 Report post Posted January 27, 2016 I think I found the best solution to remove a directory structure which also contains symbolic links and with ACLs managed by TrustedInstaller or Authenticated Users or System users: takeown /F "<Directory_path>" /A /R /D Y /SKIPSL >nul 2>&1 icacls "<Directory_path>" /reset icacls "<Directory_path>" /grant:r Administrators:(OI)(CI)F /inheritance:e /Q /C /T /L >nul 2>&1 pushd "<Directory_path>" && ( rd /S /Q "<Directory_path>" 2>nul & popd ) Thanks Bye Quote Share this post Link to post Share on other sites More sharing options...
0 balubeto Posted February 2, 2016 Report post Posted February 2, 2016 Since the /d option value of the takeown varies according to the language of Windows, how do I make sure that this command works properly for each language? Thanks Bye Quote Share this post Link to post Share on other sites More sharing options...
Hi
I have Windows 10 v1511 Enterprise 64 bit with two Microsoft account.
From the Command Prompt (run as administrator), I tried to write
but I get the "Access Denied" error. Why?
Thanks
Bye
Share this post
Link to post
Share on other sites