Remove-SCOMAgentlessManagedComputer
Removes agentless managed computers from a management group.
Syntax
Remove-SCOMAgentlessManagedComputer
[-Computer] <RemotelyManagedComputer[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-SCOMAgentlessManagedComputer cmdlet removes one or more agentless managed computers from a management group.
Examples
Example 1: Remove agentless managed computers from the management group
PS C:\>Get-SCOMAgentlesslyManagedComputer -DNSHostName "server01*" | Remove-SCOMAgentlessManagedComputer -Confirm
This command removes managed computers that do not have Operations Manager agent. The command uses the Get-SCOMAgentlesslyManagedComputer cmdlet to get all agentless managed computers with names that begin with server01, and passes the results to the Remove-SCOMAgentlessManagedComputer cmdlet by using the pipeline operator. The command removes the agentless managed computers returned by the Get-SCOMAgentlesslyManagedComputer cmdlet from the management group.
Parameters
-Computer
Specifies an array of agentless managed computers. You can use the Get-SCOMAgentlessManagedComputer cmdlet to get managed computers that do not have Operations Manager agents.
Type: | RemotelyManagedComputer[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |