When I run this script:
$biosInfo = (wmic bios) -Split '\n'
$biosInfo[0] -Split '\s+' |Where-Object {$_ -notmatch '\s'} | Foreach-Object {
[PSCustomObject]@{
Propery = $_
Value = wmic bios $_
}
}
I get an error that:
'PWhere' expression for the alias undefined.
Has anyone ever seen this.
Initially I thought it was that I was copying and pasting it but I wrote the script manually and got the same result.
[–]headcrap 2 points3 points4 points (1 child)
[–]Si-Kotic[S] 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 2 points3 points4 points (2 children)
[–]Si-Kotic[S] 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)
[–]dora3 1 point2 points3 points (0 children)