Team Foundation Server + PowerShell = Happiness
Couple things I needed to do today - you can see how they were much simpler thanks to a couple of cmdlets I had written in the past:
Get-TfWorkspace | %{ $oneexists = $false $_.Folders | %{ $oneexists = $oneexists -or [io.directory]::exists($_.localitem) } if (-not $oneexists) { "Deleting $($_.DisplayName)" tf.exe workspace /delete /i $_.Name } else { "Keeping $($_.DisplayName)" } }