[This is preliminary documentation and is subject to change. Blank topics are included as placeholders.]

Disables a service or server role that has been removed from a computer running Microsoft Communications Server 2010.

Syntax

Disable-CsComputer [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-GlobalCatalog <Fqdn>] [-GlobalSettingsDomainController <Fqdn>] [-Report <String>] [-Scorch <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

Parameters

Parameter Required Type Description

Scorch

Optional

Switch Parameter

Uninstalls all Communications Server services and server roles for the local computer.

GlobalCatalog

Optional

String

Fully qualified domain name of a global catalog server in your domain. This parameter is not required if you are running Disable-CsComputer on a computer with an account in your domain.

GlobalSettingDomainController

Optional

String

Fully qualified domain name of a domain controller where global settings are stored. If global settings are stored in the System container in Active Directory 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.

Report

Optional

String

Enables you to specify a file path for the log file created when the cmdlet runs. For example: -Report "C:\Logs\DisableComputer.html"

Force

Optional

Switch Parameter

Suppresses the display of any non-fatal error message that might arise when running the command.

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.

Detailed Description

Removing a service or server role from a computer does not automatically update the Communications Server topology; instead, that service or role must be disabled before the changes are fully updated in the topology. The Disable-CsComputer cmdlet provides a way for administrators to disable any services or server roles that have been removed from the local computer.

Unless you use the –Scorch parameter, the Disable-CsComputer cmdlet does not uninstall the Communications Server 2010 software; instead, it simply stops the computer from functioning in its previously-appointed role.

Return Types

Disable-CsComputer disables instances of the Microsoft.Rtc.Management.Deploy.Internal.Machine object.

Examples

-------------------------- Example 1 ------------------------

Copy Code
Disable-CsComputer -Fqdn atl-cs-001.litwareinc.com

The command shown in Example 1 disables the computer atl-cs-001.litwareinc.com.

-------------------------- Example 2 ------------------------

Copy Code
Disable-CsComputer -Fqdn atl-cs-001.litwareinc.com -Report C:\Disable.html

The command shown in Examples 2 also disables the computer atl-cs-001.litwareinc.com. In addition to disabling the computer, however, this command also records information about the success (or failure) of that task in the file C:\Disable.html. This log file is generated by adding the -Report parameter followed by the path to the log file you want the information recorded.