Removed comment: // Windows XP returns 'Windows 2000' just for fun... On my machine (Windows XP Pro SP1) the os.name property is "Windows XP".