Skip to content
Cloudflare for Teams
Visit Cloudflare for Teams on GitHub
Set theme to dark (⇧+D)

OS Version

Feature availability
Operating SystemsWARP mode requiredTeams plans
Windows, MacWARP with GatewayAll 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 Semver version. The version formation must be specified as a valid Semver (for example, x.x.x or 1.2.0).

To enable the OS version check:

  1. On the Teams Dashboard, navigate to My Team > Devices > Device posture.
  2. Click +Add.
  3. Select OS version.
  4. Enter a descriptive name for the check.
  5. Combine the Operating system, Operator, and Value fields to specify the OS version you want devices to match.
  6. 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

  1. Open a terminal window.
  2. Use the defaults command to check for the value of SystemVersionStampAsString.
defaults read loginwindow SystemVersionStampAsString

On Windows

  1. Open a Powershell window.
  2. Use the Get-CimInstance command to get the version property of the Win32_OperatingSystem class.
(Get-CimInstance Win32_OperatingSystem).version