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!

About the Author

Jonathan Walz

Since March 2007, Jonathan Walz has been the co-host and technical brains for the PowerScripting Podcast. Conceived as a radio show for the PowerShell community, the podcast is the longest-lived PowerShell show in existence, and has featured dozens of weekly guests.