balubeto's Mega Query Thread

Discussion in 'Windows 10' started by balubeto, Dec 26, 2015.

  1. balubeto

    balubeto MDL Addicted

    Dec 22, 2009
    580
    10
    30
    #61 balubeto, Feb 2, 2016
    Last edited: Feb 2, 2016
    (OP)
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,447
    1,423
    60
    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.
     
  3. 100

    100 MDL Expert

    May 17, 2011
    1,349
    1,576
    60
    #63 100, Feb 2, 2016
    Last edited: Feb 2, 2016
    You're both wrong.

    I was wrong.
     
  4. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,447
    1,423
    60
    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).
     
  5. 100

    100 MDL Expert

    May 17, 2011
    1,349
    1,576
    60
    Hah, wow. You're right, it doesn't work. Despite that, the parameter description explicitly mentions "Y" and "N" for non-English languages. :doh:
     
  6. balubeto

    balubeto MDL Addicted

    Dec 22, 2009
    580
    10
    30
    So, how should I solve my problem?

    Thanks

    Bye
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
    How about you FIRST research yourself?
     
  8. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,447
    1,423
    60
    The register key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\InstallLanguage returns a four digit language code.
     
  9. balubeto

    balubeto MDL Addicted

    Dec 22, 2009
    580
    10
    30
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    :biggrin: :bye1:
     
  11. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
  12. balubeto

    balubeto MDL Addicted

    Dec 22, 2009
    580
    10
    30
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,575
    15,646
    270
    AND you should already know about many DATA BACKUP methods which actually exists, including the cloud. No excuse for such s...
     
  14. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
    Don't feed that troll, but ban would be wise.
     
  15. balubeto

    balubeto MDL Addicted

    Dec 22, 2009
    580
    10
    30
    #76 balubeto, Apr 28, 2016
    Last edited by a moderator: Apr 20, 2017
    (OP)
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...