Remove-CsConfigurationStoreLocation
Topic Last Modified: 2012-03-26
Removes the Active Directory service control point for the Central Management store.
Syntax
Remove-CsConfigurationStoreLocation [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-GlobalSettingsDomainController <Fqdn>] [-Report <String>] [-WhatIf [<SwitchParameter>]]
Detailed Description
Active Directory Domain Services (AD DS) uses service control points (SCP) to help computers locate services. For example, when you install Microsoft Lync Server 2010, an SCP is created that provides location information for the Central Management store used to maintain Lync Server data. Computers that need access to the database connect to Active Directory and use the information contained in the SCP to help them locate the correct computer and the correct instance of SQL Server.
As noted, when you install Lync Server, an SCP for the Central Management store is automatically created for you. Typically, you do not want to delete that SCP; if you do, computers will not be able to locate the database. However, there might be times (perhaps when troubleshooting a problem) when you will need to delete the SCP. To do that, use the cmdlet Remove-CsConfigurationStoreLocation. After the SCP has been deleted, you can recreate it (or create a new service control point) by using the Set-CsConfigurationStoreLocation cmdlet.
Who can run this cmdlet: By default, members of the following groups are authorized to run the Remove-CsConfigurationStoreLocation cmdlet: RTCUniversalServerAdmins.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
GlobalSettingsDomainController |
Optional |
String |
Fully qualified domain name (FQDN) of a domain controller where global settings are stored. If global settings are stored in the Active Directory System container, then this parameter must point to the root domain controller. If global settings are stored in the Configuration container, then any domain controller can be used and this parameter can be omitted. |
Force |
Optional |
Switch Parameter |
Suppresses the display of any non-fatal error message that might occur when running the command. |
Report |
Optional |
String |
Enables you to specify a file path for the log file created when the cmdlet runs. For example: -Report "C:\Logs\ConfigurationStore.html" |
WhatIf |
Optional |
Switch Parameter |
Describes what would happen if you executed the command without actually executing the command. |
Confirm |
Optional |
Switch Parameter |
Prompts you for confirmation before executing the command. |
Input Types
None. Remove-CsConfigurationStoreLocation does not accept pipelined input.
Return Types
Remove-CsConfigurationStoreLocation does not return any objects or values.
Example
-------------------------- Example 1 ------------------------
Remove-CsConfigurationStoreLocation
The command shown in Example 1 removes the Active Directory service control point for the Central Management store. To restore this SCP (or to create a new SCP), you must run the Set-CsConfigurationStoreLocation cmdlet.
-------------------------- Example 2 ------------------------
Remove-CsConfigurationStoreLocation -Report C:\Logs\Store_Location.html
Example 2 also removes the Active Directory service control point for the Central Management store. In addition to deleting the SCP, this command records information about the success (or failure) of the operation to the log file C:\Logs\Store_Location.html. To create this log file, the command uses the Report parameter followed by the path to the log file where information should be recorded. If this file already exists, the contents will be overwritten when the command runs. If the file does not exist, it will be created when the command runs.