Episode 7 – Don't Forget What You Already Know


A Podcast about Windows PowerShell.

  • Can you use -match instead of -eq?  Jeffery Snover's blog post.

"Whenever you find yourself using –EQ, ask yourself if that is really want you want. You might be cheating yourself out of a ton great stuff. "

  • Don't forget what you already know    
    • $u = "user"; net localgroup administrators | where {$_ -match $u}
  • Scott Hanselman's blog post about finding out if a user is in the local admin group

  • Gotchas


  • Powershell challenge
    • out-file $profile -noclobber -append -input `n'function sub($x,$y){$x - $y}'

 Thanks for listening!

Comments are closed.