Skip to content

Instantly share code, notes, and snippets.

@MrWyss-MSFT
Created June 5, 2024 08:28
Show Gist options
  • Select an option

  • Save MrWyss-MSFT/b8d77f15ee993e4a36d15c38fa8b5cdd to your computer and use it in GitHub Desktop.

Select an option

Save MrWyss-MSFT/b8d77f15ee993e4a36d15c38fa8b5cdd to your computer and use it in GitHub Desktop.
Get the Corporate device identifiers for Intune "Manufacturer, model and serial number (Windows only)"
$ComputerSystem = Get-CimInstance -Class Win32_ComputerSystem
$Bios = Get-CimInstance -Class Win32_BIOS | Select-Object SerialNumber
$CSV = "{0},{1},{2}" -f $ComputerSystem.Manufacturer, $ComputerSystem.Model, $Bios.SerialNumber
$CSV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment