Get-MSDevices
Get groups of Devices. The results can be edited and fed back into Update-MSDevices to apply bulk updates
Syntax
Get-MSDevices -DeviceIds (Array) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -All [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -My [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -BlueprintId (Int32) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -BlueprintPath (String) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -BlueprintFolderId (Int32) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -BlueprintFolderPath (String) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -ProcessId (Int32) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -ProcessName (String) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -SubProcessId (Int32) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -SubProcessName (String) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -DeployUnitId (Int32) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -DeployUnitName (String) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -Archived [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -Locked [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -Deleted [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -DropdownValue (String) -Dropdown (String) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Get-MSDevices -TeamMemberName (String) -TeamMemberType (String) [-SearchTerm (String)] [-Take (Int32)] [-Skip (Int32)] [-IdsOnly] [-Count]
Examples
## Get a list of known Devices by their Ids
Get-MSDevices -Ids @(1000,1001,1002)
## Get a list of Devices in a Blueprint
Get-MSDevices -BlueprintPath "Discovery\AD\Devices\Domain Controllers"
## Get a list of Devices in the 'Migrating' Process
Get-MSDevices -ProcessName "4. Migrating"
## Get a list of Locked, Archived, or Deleted Devices
Get-MSDevices -Locked
Get-MSDevices -Archived
Get-MSDevices -Deleted
## Get a count of ALL Devices in database
(Get-MSDevices -All).Count