Category Archives: 142

Slides from my powershell talk

I gave an introduction to Powershell talk at the St. Louis .Net UG meeting on Monday, October 29th to about 70-80 people or so. I introduced basic concepts of powershell, talked about a few problems I had solved with it, … Continue reading

Posted in 112, 142 | Comments Off

Finding all Attribute types in an assembly through powershell

I was using the new xunit.net testing framework, and I wanted to see a list of all the attributes they had. This looks like a job for Powershell!!! [System.Reflection.Assembly]::LoadFile(“pathToFile.dll”).GetTypes() | where-object { $_ -match “Attribute” } That did the trick! … Continue reading

Posted in 142 | 2 Comments

Finding installed products with uninstall instructions

I was repaving a machine the other day, and I had to load all my development tools. There were a bunch of them, and when I got finished, I noticed that IIS and SQL Server failed to install properly. So … Continue reading

Posted in 142 | 9 Comments

Another powershell quickie – removing all bin and obj directories beneath VS.Net projects

gci -recurse -include bin,obj . | ri -recurse I was playing around with how to get this to work, and I couldn’t seem to figure out why these commands didn’t find the same locations to delete: gci -recurse -include bin,obj … Continue reading

Posted in 110, 112, 142 | 1 Comment

find -name foo.\* | xargs grep "find_me"

[Update from Brad Wilson and Scott Dukes] I’ve been wanting a powershell script to replace my favorite unix command for ages, and I took a stab at it today. This got me very close to what I wanted yesterday, which … Continue reading

Posted in 142 | 11 Comments