Check for a powershell version >= 3

This commit is contained in:
abcdefg30 2017-09-23 19:20:43 +00:00 committed by Paul Chote
parent bc310ff216
commit d562398bff

View File

@ -233,6 +233,13 @@ function ParseConfigFile($fileName)
###############################################################
############################ Main #############################
###############################################################
if ($PSVersionTable.PSVersion.Major -clt 3)
{
echo "The makefile requires Powershell version 3 or higher."
echo "Please download and install the latest Windows Management Framework version from Microsoft."
WaitForInput
}
if ($args.Length -eq 0)
{
echo "Command list:"