TAKEOWN – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Take ownership of a file (Windows 2003/7/2008).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
Syntax TAKEOWN [/s Computer [/u [Domain\]UserName [/p [Password]]]] /f FileName [/a] [/r [/d {Y|N}]] Key /s Computer The name or IP address of a remote computer (do not use backslashes). default = local computer. This parameter applies to all of the files and folders specified in the command. /u [Domain\]UserName Run the script with the permissions of the specified user account. default = system permissions. /p [Password] The password of the user account that is specified in the /u parameter. /f FileName The file name, UNC path or directory name pattern. Accepts the wildcard character * /a Give ownership to the Administrators group instead of the current user. /r Perform a recursive operation on all files in the specified directory and subdirectories. /d {Y | N} Suppress the confirmation prompt that is displayed when the current user does not have the "List Folder" permission on a specified directory, and instead use a default value: Y: Take ownership of the directory. N: Skip the directory. Note that you must use this option in conjunction with the /r option. |
If the /a parameter is not specified, file ownership is given to the user who is currently logged on to the computer.
Mixed patterns using (? and *) are not supported by the takeown command.
After changing the owner for a file/folder, you can then assign full permissions to the files and subsequently read or delete them.
this is a brilliant web site