View Single Post
Old 08-18-2008   #1 (permalink)
AdityaKir


 
 

Powershell Operator

hi,

I need to do some string comparison but the below script doesnt seem to
return true

$version = "Microsoft(R) Windows(R) Server 2003, Enterprise Edition"
$check = "Microsoft(R) Windows(R) Server 2003*"

I am checking if the $Check exists in $Version

$Version -match $check

Returns False. Should it return true. Using -Like works dont know why ?

My System SpecsSystem Spec