Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Disable-CsComputer

 

Topic Last Modified: 2013-03-06

Disables a service or server role that has been removed from a computer running Lync Server. This cmdlet was introduced in Lync Server 2010.

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

The command shown in Example 1 disables the local computer.

Disable-CsComputer 

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

Disable-CsComputer -Report C:\Logs\Disable.html

Removing a service or server role from a computer does not automatically update the Lync 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 Lync Server software; instead, it simply stops the computer from functioning in its previously assigned role.

Who can run this cmdlet: You must be a local administrator and a member of the domain in order to run the Disable-CsComputer cmdlet locally.

 

Parameter Required Type Description

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command.

Force

Optional

System.Management.Automation.SwitchParameter

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

GlobalCatalog

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

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

GlobalSettingsDomainController

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

FQDN of a domain controller where global settings are stored. If global settings are stored in the System container in Active Directory Domain Services, 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

System.String

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

Scorch

Optional

System.Management.Automation.SwitchParameter

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

WhatIf

Optional

System.Management.Automation.SwitchParameter

Describes what would happen if you executed the command without actually executing the command.

None. The Disable-CsComputer cmdlet does not accept pipelined input.

None. Instead, the Disable-CsComputer cmdlet disables instances of the Microsoft.Rtc.Management.Deploy.Internal.Machine object.

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.