OS Version (beta)
Feature availability
| Status | Operating Systems | WARP mode required | Teams plans |
|---|---|---|---|
| Beta | macOS, Windows | WARP with Gateway | All plans |
The OS Version device posture attribute checks whether the version of a device’s operating system matches, is greater than or lesser than a given value.
To enable the OS version check:
- On the Teams Dashboard, navigate to My Team > Devices > Device posture.
- Click +Add.
- Select OS version.
- Enter a descriptive name for the check.
- Combine the Operating system, Operator, and Value fields to specify the OS version you want devices to match.
- Click Save.
Determine the OS Version
Operating systems display version numbers in different ways. This section covers how to retrieve the version number in each OS, in a format matching what the OS Version posture check expects.
On macOS
- Open a terminal window
- Use the
defaultscommand to check for the value ofSystemVersionStampAsString
defaults read loginwindow SystemVersionStampAsString
On Windows
- Open a powershell windows
- Use the
Get-CimInstancecommand to get the version property of theWin32_OperatingSystemclass
(Get-CimInstance Win32_OperatingSystem).version