![]() ![]() Get-CMDevice -Name Unknown | ForEach-Object Rather than sorting through any devices with the name ‘Unknown’, I can simply run a quick one-liner to find the correct device. From time to time, I have found that OSD will fail for one reason or another and the ‘Unknown’ device will need to be removed. During operating system deployment, a device will appear in the database with the name ‘Unknown’ until the task sequence gets to a point of naming the device. One of the primary uses of this cmdlet, in my experience, is finding rogue ‘Unknown’ devices. Get-CMResource -Name MyDeviceName -Fast | Select Name,MacAddresses Using this, we can snag the MAC Address quickly However, MAC isn’t one of the attributes returned.Ī couple of releases ago, the ConfigMgr team introduced a new cmdlet – ‘Get-CMResource’. ![]() Ever need to quickly get the mac address for a device in Configuration Manager and don’t want to wade through the console to find it? My logic said that the Get-CMDevice cmdlet would do the trick.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |