text
stringlengths
0
4.23k
/s <computer>
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 [<domain>\]<username>
Runs the script with the permissions of the specified user account. The default value is system permissions.
/p [<[password>]
Specifies the password of the user account that is specified in the /u parameter.
/f <filename>
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. If you don't specify this option, file ownership is given to the user who is currently logged on to the computer.
/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:Y - Take ownership of the directory.N - Skip the directory.NOTEYou must use this option in conjunction with the /r option.
/?
Displays help at the command prompt.
<computer>
[<domain>\]<username>
[<[password>]
<filename>
*
<sharename>\<filename>
{Y | N}
NOTEYou must use this option in conjunction with the /r option.
Remarks
Mixed patterns using (? and *) aren't supported by takeown command.
After deleting the lock with takeown, you might have to use Windows Explorer to give yourself full permissions to the files and directories before you can delete them.
Examples
To take ownership of a file named Lostfile, type:
takeown /f lostfile
tapicfg install
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Creates a TAPI application directory partition.
Important
You must be a member of the Enterprise Admins group in active directory to run this command.
Syntax
tapicfg install /directory:<partitionname> [/server:<DCname>] [/forcedefault]
Parameters
Parameter
Description
install /directory:<partitionname>
Required. Specifies the DNS name of the TAPI application directory partition to be created. This name must be a fully-qualified domain name.
/server: <DCname>
Specifies the DNS name of the domain controller on which the TAPI application directory partition is created. If the domain controller name isn't specified, the name of the local computer is used.
/forcedefault
Specifies that this directory is the default TAPI application directory partition for the domain. There can be multiple TAPI application directory partitions in a domain.if this directory is the first TAPI application directory partition created on the domain, it's automatically set as the default, regardless of whether you use the /forcedefault option.
/?
Displays help at the command prompt.
/directory:<partitionname>
<DCname>
if this directory is the first TAPI application directory partition created on the domain, it's automatically set as the default, regardless of whether you use the /forcedefault option.
Remarks
This command-line tool can be run on any computer that is a member of the domain.
User-supplied text (such as the names of TAPI application directory partitions, servers, and domains) with International or Unicode characters are only displayed correctly if appropriate fonts and language support are installed.
You can still use Internet Locator Service (ILS) servers in your organization, if ILS is needed to support certain applications, because TAPI clients running Windows XP or a Windows Server 2003 operating system can query either ILS servers or TAPI application directory partitions.
You can use tapicfg to create or remove service connection points. If the TAPI application directory partition is renamed for any reason (for example, if you rename the domain in which it resides), you must remove the existing service connection point and create a new one that contains the new DNS name of the TAPI application directory partition to be published. Otherwise, TAPI clients are unable to locate and access the TAPI application directory partition. You can also remove a service connection point for maintenance or security purposes (for example, if you do not want to expose TAPI data on a specific TAPI application directory partition).
Examples
To create a TAPI application directory partition named tapifiction.testdom.microsoft.com on a server named testdc.testdom.microsoft.com, and then set it as the default TAPI application directory partition for the new domain, type:
tapicfg install /directory:tapifiction.testdom.microsoft.com /server:testdc.testdom.microsoft.com /forcedefault
tapicfg makedefault
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Sets the default TAPI application directory partition for the domain.