Get-AmsDevice

SYNOPSIS

Gets AMS registered devices

SYNTAX

GetByName (Default)

Get-AmsDevice [[-Name] <String>] [-ApprovalState <ApprovalState>] [<CommonParameters>]

GetById

Get-AmsDevice -Id <String> [-ApprovalState <ApprovalState>] [<CommonParameters>]

DESCRIPTION

This cmdlet retrieves AMS devices from the server. It can retrieve individual devices by name, by ID, and approval state. When used without parameters, it will return all AMS devices

EXAMPLES

Example 1

PS C:\> Get-AmsDevice

Returns all AMS registered devices

Example 2

Returns the AMS device named `PC1`

Example 3

Returns all AMS registered devices that are currently pending approval

Example 4

Returns the AMS device with the specified ID

PARAMETERS

-ApprovalState

Returns only devices matching the specified approval state

-Id

The unique ID of the device

-Name

The name of the device

CommonParameters

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

INPUTS

None

OUTPUTS

Lithnet.AccessManager.PowerShell.DevicePSObject

NOTES

Use of this cmdlet requires an Enterprise Edition license.

Last updated

Was this helpful?