The
TakeOwn utility uses the following syntax.
TAKEOWN [/S system [/U [domain\]username [/P [password]]]] /F filename [/A] [/R
[/D prompt]]
The following list describes each of the command line arguments.
/S system Specifies the remote system that you want to check. In most cases, you??™ll also need
to supply the /U and the /P command line switches when using this switch.
/U [domain\]user Specifies the username on the remote system. This name may not match
the username on the local system. You??™ll need to supply a domain name when working with a
domain controller.
/P [password] Specifies the password for the given user. You can provide the command line
switch without specifying the password on the command line in cleartext. The system prompts
you for the password. Using this feature can help you maintain the security of passwords used
on your system.
/F filename Specifies the object that you want to own. The object can be a file or directory.
You can include a sharename when required. TakeOwn also lets you use wildcard characters to
define the file or directory specification.
/A Gives the Administrators group ownership of the object, instead of the current user (or the
user whose credentials you supplied).
Pages:
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901