Services
Check an IMEI now
All 209 services · instant results
Free IMEI check1st check free · no sign-up iCloud checkFind My ON / OFF BlogGuides & free tools IMEI & Serial Checks79 services IMEI Unlock91 services iCloud Bypass & Activation Tools37 services Software & Subscriptions2 services
Account
Create free account
Wallet balance, scan history, Telegram alerts
Sign inWelcome back CartEmpty
Language
EnglishالعربيةPortuguêsEspañol
Currency
NGNUSDUSDT
$1 = ₦1,409.08 · Bybit P2P · just now
Company
Contact usReply within a business day About usWho runs iSerial RefundsDelivery & refund policy PrivacyWhat we store & why +1 (904) 637-5289
support@iserial.us
TermsAgreementEmail support© 2026 iSerial
Tools & commands

Mac Terminal Commands to Check Serial Number, Model and MDM Status

Mac Terminal commands to check the serial number, model, macOS version, MDM enrollment, FileVault and Activation Lock before you buy a used MacBook or iMac.

iSerial Team
Updated · 5 min read
Mac Terminal Commands to Check Serial Number, Model and MDM Status
In this article
  1. Serial number, model and chip
  2. macOS version
  3. MDM and Device Enrollment status
  4. FileVault, SIP and firmware password
  5. Battery health on MacBooks
  6. Find My and Activation Lock: check from both sides
  7. Reading the results: common scenarios
  8. A one-minute checklist

A used MacBook can look spotless in the listing and still be enrolled in a company’s device management, locked to someone else’s Apple Account, or a completely different model from the one advertised. The quickest way to see the truth is the built-in Terminal app: a handful of commands read the serial number straight from the hardware and report exactly how the Mac is configured.

Everything below is read-only — none of these commands change anything on the Mac — so you can run them on a seller’s machine without risk. Open Terminal from Applications › Utilities › Terminal, or search for it with Spotlight.

Serial number, model and chip

macOS Terminal
system_profiler SPHardwareDataType

This prints the hardware overview: Model Name (for example MacBook Pro), Model Identifier (such as MacBookPro18,3 or Mac14,2), Chip or Processor, Memory, Serial Number and Hardware UUID. On Macs with Apple silicon or the T2 chip it also shows Activation Lock Status — you want Disabled.

Prefer a single value? These read the serial directly from the I/O registry and the model identifier and chip from the kernel:

macOS Terminal
ioreg -l | grep IOPlatformSerialNumber
ioreg -rd1 -c IOPlatformExpertDevice | grep IOPlatformSerialNumber
sysctl -n hw.model
sysctl -n machdep.cpu.brand_string

The serial from Terminal is the one burned into the logic board. Compare it with the serial on the bottom case, the box and the listing — a mismatch can mean a replaced board or a swapped case. You can decode older 12-character serials right here (or read how to decode an Apple serial number):

Apple serial number decoder runs in your browser

macOS version

macOS Terminal
sw_vers

You’ll get ProductName, ProductVersion (for example 15.x) and BuildVersion. Check that the version is supported for the model, and be wary of a Mac running a very old macOS “because updates break it” — sometimes that’s a sign of an MDM or Activation Lock problem the seller wants to hide.

MDM and Device Enrollment status

This is the most important check on any Mac that might have belonged to a company or school. Managed Macs can be locked, wiped or reconfigured remotely, and Macs registered in Apple Business Manager or Apple School Manager will show a Remote Management screen after every erase.

macOS Terminal
sudo profiles status -type enrollment
sudo profiles show -type enrollment
sudo profiles list

Type your administrator password when asked (nothing appears while you type — that’s normal).

  • profiles status -type enrollment answers two questions. Enrolled via DEP: No and MDM enrollment: No is what you want on a personal Mac. MDM enrollment: Yes (often with “User Approved”) means it is currently managed.
  • profiles show -type enrollment asks Apple’s servers whether this serial number has an automated device enrollment configuration. A normal personal Mac returns an error such as “Client is not DEP enabled”. If it returns a configuration with an organization name, the Mac is registered to that organization and will rejoin management after a reset. This one needs an internet connection.
  • profiles list shows any configuration profiles installed in the system. On a clean Mac there should be none.

Confirm with an official MDM status check using the serial — it reads the record even if the Mac has been wiped. Our MDM check page explains the results.

Don’t guess — check it.Enter the IMEI or serial and get official records in seconds. Your first All-in-one check is free.
Free IMEI check

FileVault, SIP and firmware password

macOS Terminal
fdesetup status
csrutil status
sudo firmwarepasswd -check
  • fdesetup status — FileVault is On. means the disk is encrypted. That’s good for security, but make sure the seller erases the Mac and that you know who holds the recovery key while you own it.
  • csrutil status — System Integrity Protection status: enabled. is the normal state. disabled means someone deliberately turned off a core macOS protection, which is unusual on a consumer Mac and sometimes linked to bypass attempts.
  • firmwarepasswd -check — Intel Macs only. Password Enabled: Yes means you won’t be able to boot from other disks or Recovery without it. Apple silicon Macs don’t use this command.

Battery health on MacBooks

macOS Terminal
system_profiler SPPowerDataType | grep -i -E "cycle count|condition|maximum capacity"

Look for Cycle Count, Condition (Normal or Service Recommended) and, on recent macOS versions, Maximum Capacity. Apple publishes the rated cycle count for each model on its support site; most recent MacBooks are rated for 1,000 cycles.

Find My and Activation Lock: check from both sides

Terminal shows Activation Lock status on supported Macs, but double-check two ways:

  1. On the Mac: System Settings › [name] › iCloud — the seller should sign out of their Apple Account completely, which turns off Find My Mac.
  2. Run a MacBook Find My (FMI) check and a MacBook iCloud clean/lost check on the serial number. These read Apple’s records, so they still work after the Mac has been erased.

Then ask the seller to use Erase All Content and Settings (System Settings › General › Transfer or Reset) in front of you. A clean Mac restarts to the setup assistant without asking for anyone’s Apple Account and without a Remote Management screen.

Reading the results: common scenarios

What you seeWhat it usually meansWhat to do
Serial in Terminal ≠ serial on caseReplaced logic board or housingAsk for repair paperwork; check both serials
MDM enrollment: YesActively managed by an organizationDon’t buy until the organization removes it
Enrolled via DEP: Yes or an organization in profiles showRegistered in Apple Business / School ManagerAsk for written release from the organization
Activation Lock Status: EnabledStill linked to an Apple AccountSeller must sign out of iCloud in front of you
System Integrity Protection status: disabled.Someone changed security settingsAsk why; re-enable from macOS Recovery
Condition: Service RecommendedWorn batteryPrice in a battery replacement

A one-minute checklist

  • Serial in Terminal = serial on the case and box.
  • Model and chip match the listing.
  • MDM enrollment: No, Enrolled via DEP: No, no installed profiles.
  • Activation Lock disabled and Find My off after sign-out.
  • Battery condition Normal with a reasonable cycle count.

For the full hands-on inspection, follow our used MacBook buying checklist and run the Mac serial check:

Run the check now
Sign in to pay from your wallet — no checkout
Dial *#06# or open Settings → General → About.

Frequently asked questions

How do I find my Mac serial number in Terminal?

Run system_profiler SPHardwareDataType and look for Serial Number, or run ioreg -l | grep IOPlatformSerialNumber.

How can I check if a Mac is enrolled in MDM?

Run sudo profiles status -type enrollment. If it shows MDM enrollment: Yes or Enrolled via DEP: Yes, the Mac is managed by an organization.

Will erasing a Mac remove MDM?

It removes the installed profile, but a Mac registered in Apple Business Manager will show Remote Management again during setup. Only the organization can release it.

Can I see Activation Lock status in Terminal?

On Macs with Apple silicon or the T2 chip, system_profiler SPHardwareDataType shows Activation Lock Status. Confirm with an official Find My check.

Are these Terminal commands safe to run?

Yes. They only read information. The sudo commands ask for an administrator password but do not change any settings.

Was this helpful? Share it with someone buying a phone. WhatsApp Post Share
Get the iSerial newsletterPhone-buying guides, scam alerts and offers. No spam — unsubscribe anytime.