PackageDeployment Module Help

Package Deployment Module

Test-Platform Cmdlet

Version 4.0.0.5

Test-Platform

Synopsis

Check OS version

Syntax

Test-Platform [-Criterion] <String> [<CommonParameters>]

Description

Checks if the operating system and the type of computer correspond to the specified value.

Parameters

-Criterion <String>

WinXP: Windows XP.
WinXPx86: Windows XP x86.
WinXPx64: Windows XP x64.
WinSrv2003: Windows Server 2003 family.
WinSrv2003x86: Windows Server 2003 x86 family.
WinSrv2003x64: Windows Server 2003 x64 family.
WinVista: Windows Vista.
WinVistax86: Windows Vista x86.
WinVistax64: Windows Vista x64.
WinSrv2008: Windows Server 2008 family.
WinSrv2008x86: Windows Server 2008 x86 family.
WinSrv2008x64: Windows Server 2008 x64 family.
WinSeven: Windows 7.
WinSevenx86: Windows 7 x86.
WinSevenx64: Windows 7 x64.
WinEight: Windows 8.
WinEightx86: Windows 8 x86.
WinEightx64: Windows 8 x64.
WinSrv2012x64: Windows Server 2012 x64.
WinSrv2012R2x64: Windows Server 2012 R2 x64.
WinEightOne: Windows 8.1.
WinEightOnex86: Windows 8.1 x86.
WinEightOnex64: Windows 8.1 x64.
WinTen: Windows 10.
WinTenx86: Windows 10 x86.
WinTenx64: Windows 10 x64.
WinSrv2016x64: Windows Server 2016.
WinSrv2019x64: Windows Server 2019.
DC: Domain Controller.
BDC: Backup Domain Controller.
PDC: Primary Domain Controller.
DataCenterSrv: Datacenter Server.
TSRemoteAdmin: Terminal Services installed - Remote administration mode.
TSAppSrv: Terminal Services installed - Application server mode.
WinSrv2003Web: Windows Server 2003 - Web Edition.
Winx64: Operating system based on x64 processor architecture.

Required

True

Position

0

Accepts pipeline input

False

<CommonParameters>

For more information about common parameters, type "Get-Help about_CommonParameters".