OSVersion

Table of contents

  1. get @osversion

get @osversion

Retrieves the operating system version, composed of the numbers:

  • major
  • minor
  • build
  • revision
echo windows version: !@osversion!
10.0.18362.239