This form does not yet contain any fields.
    Login
    « RODC hotfix roll-up for XP/2003 compatibility | Main | Even with the still-painful memories of the '97 Cup Finals lingering... »
    Tuesday
    May272008

    I do like it when the logical choice happens to be the one that works.

    Wanted an AD query in PoSh to pull back the count of all [users | computers | objects | puppies | socks | Phillie Phanatics] in my domain.  Created the collection object I wanted using the Quest Get-QADObject cmdlet (lovely little toy)...

    ...then before Googling I had a "Let's see if this works" moment.

    [PS] C:> $col.Count

    > 211

    Yeah, okay, that was easy.

    (Yes, Brandon, I know I could've made it a one-liner by defining the $col in parenthesis on the same line that I called the Count member. Stop with the one-liner madness!  ;-))

    Reader Comments

    There are no comments for this journal entry. To create a new comment, use the form below.

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    All HTML will be escaped. Hyperlinks will be created for URLs automatically.