Remove-RemotelyManagedComputer

Remove-RemotelyManagedComputer

Removes a remotely managed computer from an agent.

Syntax

Parameter Set: FromRemotelyManagedComputer
Remove-RemotelyManagedComputer [-Computer] <RemotelyManagedComputer[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

Removes a remotely managed computer from an agent.

Parameters

-Computer<RemotelyManagedComputer[]>

Specifies the computer or computers to remove. To enter multiple computers, separate the name of each computer by using a comma.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Notes

  • For more information, type "Get-Help Remove-RemotelyManagedComputer -detailed". For technical information, type "Get-Help Remove-RemotelyManagedComputer -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

-------------- EXAMPLE 1 --------------

This command uses Get-RemotelyManagedComputer to retrieve all remotely managed computers. It passes the results along the pipeline to Remove-RemotelyManagedComputer to remove them.

C:\PS>get-remotelymanagedcomputer | remove-remotelymanagedcomputer

Unkown