notebook lenovo idealpad Y470
Windows 8.1
command
.\PAL.ps1 -Log SamplePerfmonLog.blg -ThresholdFile QuickSystemOverview.xml -NumberOfProcessors 1 -TotalMemory 1 -SixyFourBit $False -AllCounterStats $False
error
[Started] Memory Pool Non-Paged Bytes
Counter data for ""...Done
Generating Charts.WARNING: Please post errors or problems with this tool to the PAL web site located at http://www.codeplex.com/PAL with the following error message and a brief description of what you were trying to do. Thank you.
Invoke-Expression : The variable '$OS' cannot be retrieved because it has not been set.
At C:\Program Files\PAL\PAL\PAL.ps1:3401 char:5
+ Invoke-Expression -Command $sCode
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (OS:String) [Invoke-Expression], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined,Microsoft.PowerShell.Commands.InvokeExpressionCommand
PS C:\Program Files\PAL\PAL>
Comments: ** Comment from web user: raymegal **
Windows 8.1
command
.\PAL.ps1 -Log SamplePerfmonLog.blg -ThresholdFile QuickSystemOverview.xml -NumberOfProcessors 1 -TotalMemory 1 -SixyFourBit $False -AllCounterStats $False
error
[Started] Memory Pool Non-Paged Bytes
Counter data for ""...Done
Generating Charts.WARNING: Please post errors or problems with this tool to the PAL web site located at http://www.codeplex.com/PAL with the following error message and a brief description of what you were trying to do. Thank you.
Invoke-Expression : The variable '$OS' cannot be retrieved because it has not been set.
At C:\Program Files\PAL\PAL\PAL.ps1:3401 char:5
+ Invoke-Expression -Command $sCode
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (OS:String) [Invoke-Expression], RuntimeException
+ FullyQualifiedErrorId : VariableIsUndefined,Microsoft.PowerShell.Commands.InvokeExpressionCommand
PS C:\Program Files\PAL\PAL>
Comments: ** Comment from web user: raymegal **
Doh! I just noticed that one place does this:
```
$SixtyFourBit = $OS.substring(0,2)
If ($($SixtyFourBit) -eq $False)
```
And another does this:
```
$SixtyFourBit = $OS.substring(0,2)
If ($($SixtyFourBit) -eq 32)
```
I think making both like the last is what is intended...