TakeOwn.exe *********** * Microsoft Windows NT4/2000/XP/2003 TakeOwn (TAKEOWN.EXE) v5.0.1961.1 command line tool allows users to take over ownership of files/directories/drives (NTFS only!), useful for batch files/scripts + unattended operations/installs: http://technet.microsoft.com/library/cc753024.aspx Direct download [4.4 KB, English]: http://www.mdgx.com/files/TAKEOWN.ZIP Windows Vista, 2008, 7, 8, 8.1, 2012 + 10 include NEWer versions of TakeOwn! Do NOT replace them! TakeOwn installs as part of Microsoft Windows 2000 Server Resource Kit (RK) companion CD-ROM: http://www.petri.co.il/download_free_reskit_tools.htm MS TechNet: TakeOwn Guide for Windows 2003: http://technet.microsoft.com/library/cc755342.aspx MSKB: How to Use TakeOwn to Manage Shares in Windows NT 4.0: http://support.microsoft.com/kb/269269 SS64: TAKEOWN.EXE: http://www.ss64.com/nt/takeown.html TakeOwn can be used together with CACLS, ICACLS, XCACLS, SetACL or SubInACL to change file/folder ownership/permissions on NTFS drives/partitions/volumes. More info: http://www.mdgx.com/fmnt32/fmnt32.php See "BUGs + FIXes" section -> "FIX #2:". NTFS Permissions Tools (NPT) 32-bit + 64-bit (freeware): http://www.ghacks.net/2011/05/24/ntfs-permissions-tools/ Direct download: http://dbc-studio.blog.163.com/blog/static/757510502013651134649/ Ownership Windows Explorer shell extension right-click context menu (freeware): http://www.rizonesoft.com/download/ownership/ TakeOwnershipEx (freeware): http://www.winaero.com/comment.php?comment.news.18 Permissions Time Machine resets/restores folders/subfolders, files, registry, services, processes + WMI objects permissions (freeware): http://www.amydprojects.com/search/label/Permissions%20Time%20Machine%20Lite%202.2 * NT6 Restriction Fix (FixNT6.exe) v1.14.202 32-bit TakeOwn + (I)Cacls GUI + command line tool replacement for Windows 2000/XP/2003/Vista/2008/7/8/8.1/2012/10/2016 allows users to take over ownership of drives/partitions/volumes, directories/folders + files including ACL protected (NTFS only!), useful for batch files/scripts + unattended operations/installs: http://www.jsware.net/jsware/nt6fix.php5#restfix Direct download [36 KB, freeware]: http://www.jsware.net/jsware/zips/fix6r.zip ****************************************************************************** CAUTION: Windows Vista, 2008, 7, 8, 8.1, 2012, 10 and newer OSes have their own specific version (build) of TAKEOWN.EXE located in the %windir%\SYSTEM32 folder, and that's the one you should use for compatibility reasons. More info: * "File Manager (FM) + FM Add-ons ReadMe Guide" (FMNT32.TXT) -> "BUGs + FIXes" chapter -> "FIX #2:" section: http://www.mdgx.com/fmnt32/fmnt32.php * FixNT6.exe, TAKEOWN.EXE, CACLS.EXE, icacls.exe, SetACL, SubInACL, XCACLS.EXE + XCACLS.VBS: http://www.mdgx.com/xptoy.htm#ACL ****************************************************************************** SYNTAX ****** TakeOwn.exe enables an administrator to recover access to a file that previously was denied, by making the administrator the owner of the file. Very useful in batch files/scripts + unattended operations/installs. takeown [/s [/u [\] [/p []]]] /f [/a] [/r [/d {Y|N}]] Parameters /s Specifies the name or IP address of a remote computer (do not use backslashes). The default value is the local computer. This parameter applies to all of the files and folders specified in the command. /u [\] Runs the script with the permissions of the specified user account. The default value is system permissions. /p [] Specifies the password of the user account that is specified in the /u parameter. /f Specifies the file name or directory name pattern. You can use the wildcard character * when specifying the pattern. You can also use the syntax ShareName\FileName. /a Gives ownership to the Administrators group instead of the current user. /r Performs a recursive operation on all files in the specified directory and subdirectories. /d {Y | N} Suppresses the confirmation prompt that is displayed when the current user does not have the "List Folder" permission on a specified directory, and instead uses the specified default value. Valid values for the /d option are as follows: * Y: Take ownership of the directory. * N: Skip the directory. Note that you must use this option in conjunction with the /r option. /? Displays help at the command prompt. Remarks: * This command is typically used in batch files/scripts + unattended operations/installs. * If the /a parameter is not specified, file ownership is given to the user who is currently logged on to the computer. * You cannot use wildcard characters (? and *) with the takeown command. * After deleting the lock with takeown, you might have to use Windows Explorer or the cacls command to give yourself full permissions to the files and directories/subdirectories before you can manipulate (rename, move, delete) them. Examples To take ownership of a file named Lostfile, type: takeown /f lostfile The following table describes the notation used to indicate command-line syntax. Notation Description ============================================================================== Text without brackets or braces Items you must type as shown Placeholder for which you must supply a value [Text inside square brackets] Optional items {Text inside braces} Set of required items; choose one Vertical bar (|) Separator for mutually exclusive items; choose one Ellipsis (...) Items that can be repeated ==============================================================================