Get-CMDevice
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Get-CMDevice
Gets a device of the Configuration Manager hierarchy.
Syntax
Parameter Set: ByName
Get-CMDevice [-Name <String> ] [ <CommonParameters>]
Parameter Set: ById
Get-CMDevice -Id <String> [ <CommonParameters>]
Detailed Description
The Get-CMUser cmdlet retrieves a device object that can be added to a collection.
To add a device to a collection use the Add-CMDeviceCollectionDirectMembershipRule cmdlet. For more information about Configuration Manager collections, see Introduction to Collections in Configuration Manager.
Parameters
-Id<String>
Specifies the Id of the device.
Aliases |
ResourceID |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies the name of the device.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Examples
PS C:\>