$os » History » Version 3
  Per Amundsen, 02/18/2022 02:36 AM 
  
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ | 
|---|---|---|---|
| 2 | |||
| 3 | *$os* | ||
| 4 | |||
| 5 | Returns the version number of the operating system. | ||
| 6 | 2 | Per Amundsen | |
| 7 | 3 | Per Amundsen | _The reply can be XP, 2003, 2003R2, Vista, 2008, 7, 2008R2, 8, 2012, 8.1, 2012R2, 2016, 10 0r 11._ | 
| 8 | |||
| 9 | *Properties* | ||
| 10 | |||
| 11 | .major - Returns the os major version. (returns wrong in windows 11) | ||
| 12 | .minor - Returns the os minor version. | ||
| 13 | .build - Returns the os build number. | ||
| 14 | .platform - Returns the os platform. | ||
| 15 | .type - Returns the os type. | ||
| 16 | .spmajor - Returns the os service pack major version. | ||
| 17 | .spminor - Returns the os service pack minor version. | ||
| 18 | .suite - Returns the os suite. |