Error: Parameter attribute is supported only for script cmdlets

Feb 25, 2011 at 5:58 PM

When I run the PALWizard, I get the following error:

C:\Program Files\PAL\PAL v2.0.7>Powershell ".\PAL.ps1" -Log 'E:\tmp\PAL\PAL_IIS_
20110224.blg' -ThresholdFile 'C:\Program Files\PAL\PAL v2.0.7\AspDotNet.xml' -In
terval '1800' -IsOutputHtml $True -HtmlOutputFileName '[LogFileName]_PAL_ANALYSI
S_[DateTimeStamp].htm' -IsOutputXml $False -XmlOutputFileName '[LogFileName]_PAL
_ANALYSIS_[DateTimeStamp].xml' -AllCounterStats $False -NumberOfProcessors 2 -Th
reeGBSwitch $False -SixtyFourBit $True -TotalMemory 24

Parameter attribute is supported only for script cmdlets.
At C:\Program Files\PAL\PAL v2.0.7\PAL.ps1:152 char:56
+     param ([Parameter(Position=0,Mandatory=1)]$InputObject <<<< ,[Parameter(P
osition=1,Mandatory=1)]$Name)

Any help is appreciated

Coordinator
Mar 16, 2011 at 6:56 AM

Please ensure that you have PowerShell v2.0 installed. I've been meaning to add a check for this.

Mar 31, 2011 at 12:59 PM
Edited Mar 31, 2011 at 12:59 PM

I have same problem. If you have a good solution, please tell me: branttail@gmail.com)

Jun 6, 2012 at 7:52 AM

 

I have same problem. If you have a good solution, please tell me.

Jun 6, 2012 at 8:19 AM

exucte this file,this bug will fix.

http://download.microsoft.com/download/1/1/7/117FB25C-BB2D-41E1-B01E-0FEB0BC72C30/WindowsServer2003-KB968930-x86-ENG.exe