PAL 2.0 Alpha 5 error when processing Exchange 2007 Perf ??

May 20, 2010 at 9:47 PM

Hi There,

I am trying to run PAL 2.0 and I get the following error trying to process my counters file for Exchange 2007 on Windows Server 2003 R2 (64bit) with 4CPUs and 8GB ram:

C:\Program Files\PAL\PAL v2.0 Alpha 5>C:
C:\Program Files\PAL\PAL v2.0 Alpha 5>cd "C:\Program Files\PAL\PAL v2.0 Alpha 5"
C:\Program Files\PAL\PAL v2.0 Alpha 5>Powershell .\PAL.ps1 -Log 'C:\perf\perf_ex
change_05201436.blg' -ThresholdFile 'C:\Program Files\PAL\PAL v2.0 Alpha 5\Excha
nge.xml' -Interval 'AUTO' -IsOutputHtml $True -HtmlOutputFileName '[LogFileName]
_PAL_ANALYSIS_[DateTimeStamp]_[GUID].htm' -IsOutputXml $False -XmlOutputFileName
 '[LogFileName]_PAL_ANALYSIS_[DateTimeStamp]_[GUID].xml' -AllCounterStats $False
 -NumberOfProcessors 4 -ThreeGBSwitch $False -SixtyFourBit $False -TotalMemory 8

Unable to find type [Parameter(Position=0,Mandatory=1)]: make sure that the ass
embly containing this type is loaded.
At C:\Program Files\PAL\PAL v2.0 Alpha 5\PAL.ps1:145 char:44
+     param ([Parameter(Position=0,Mandatory=1)]$ <<<< InputObject,[Parameter(P
osition=1,Mandatory=1)]$Name)

C:\Program Files\PAL\PAL v2.0 Alpha 5>

 

Any idea what I am doing wrong? Thank you for your help.

May 20, 2010 at 9:49 PM

Looks like the code its failing at is:

 

Function Test-Property
{
    #// Function provided by Jeffrey Snover
    #// Tests if a property is a memory of an object.
    param ([Parameter(Position=0,Mandatory=1)]$InputObject,[Parameter(Position=1,Mandatory=1)]$Name)
    [Bool](Get-Member -InputObject $InputObject -Name $Name -MemberType *Property)
}

 

Coordinator
May 21, 2010 at 11:42 PM

Are you running PowerShell v2.0? PAL v2.0 requires PowerShell v2.0.