Chap 15 MonthofLunches Question

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 0 Followers

Not Ranked
5 Posts
SdeDot posted on 03-27-2012 8:31 AM

Hi Don,

On page 175 in the 2nd paragraph, you state 'The variable itself has a property that lets you see how many objects are in it:'

PS C:\> $computers.count <enter>

3

When I do a PS C:\> $computer | gm <enter>, I do not see the count property displayed.  Why?

Thanks in advance.

All Replies

Top 10 Contributor
640 Posts

It's actually some PowerShell trickery. Also, GM is showing the CONTENTSnof the variable not the variable itself.

Page 1 of 1 (2 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.