Remove-RemotelyManagedDevice
Remove-RemotelyManagedDevice
Removes a remotely managed device from an agent.
Syntax
Parameter Set: FromRemotelyManagedDevice
Remove-RemotelyManagedDevice [-Devices] <RemotelyManagedDevice[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
Removes a remotely managed device from an agent.
Parameters
-Devices<RemotelyManagedDevice[]>
Specifies the remotely-managed devices to remove. You can use the get-remotelymanageddevice cmdlet to retrieve values for this parameter.
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-RemotelyManagedDevice -detailed". For technical information, type "Get-Help Remove-RemotelyManagedDevice -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 the get-remotelymanageddevice cmdlet to get all the remotely-manageddevices. The command then removes the devices by pipelining them to the remove-remotelymanageddevice cmdlet.
C:\PS>get-remotelymanageddevice | remove-remotelymanageddevice