house9

random code and what not

Add tf.exe and other .net command line tools to your powershell path

I really don’t like cmd.exe, it is difficult to work with. PowerShell ISE is much nicer and the bonus is you can run non powershell programs from this environment as well.

I needed to run some TFS commands, adding the ide directory to the path is easy
$env:path += “;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE”
another directory you might want to add if you are messing about with IIS7

$env:path += “;C:\Windows\System32\inetsrv” 
now you can do things like recycle all of the AppPools on your machine

appcmd list apppool /xml | appcmd recycle apppool /in