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
Open an elevated command prompt and type takeown /? (this will give information for your localized Windows) and google for takeown for English language. For an English Windows the option for /D are Y(es) or N(o). If you have an Italien Windows, the options will be S(i) or N(o). For a French Windows we have O(ui) or N(on). No need a dictionary and common sense.
I typed takeown /f c:\temp /r /d y On my french Windows this command is erroring ("y" is not allowed for "/d" option). But takeown /f c:\temp /r /d o works (I have now ownership of c:\temp).
Hah, wow. You're right, it doesn't work. Despite that, the parameter description explicitly mentions "Y" and "N" for non-English languages.
The register key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\InstallLanguage returns a four digit language code.
Sorry but I have lost the final and tested solution to delete the entire structure created by the dism /Apply-Image command. Some might rewrite it? Thanks Bye
My hard drive is broken, and ... So, does anyone have the final solution to completely eliminate the directory structures protected by Windows 10 v1511? Thanks Bye
AND you should already know about many DATA BACKUP methods which actually exists, including the cloud. No excuse for such s...
I found my script in the final version: Code: 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