API Reference
Command
Disable-ADXComputer
Disables an Active Directory computer account.
Examples
Example 1: Preview disabling a workstation before rebuild
Disable-ADXComputer -Identity 'WS-KRK-102$' -Domain 'contoso.com' -WhatIf
Example 2: Disable a server account after it leaves service
Disable-ADXComputer -Identity 'srv-app-17$' -Domain 'contoso.com'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Disable-ADXComputer -Identity <string> [-Domain <string>] [<CommonParameters>]#Parameters
- Identity string
- Gets or sets computer identity (sAMAccountName, dNSHostName, DN, or name).
- Domain string
- Gets or sets the optional domain DNS name.
Outputs
ADPlayground.DirectoryMutationResult