Unregistering Custom Data Collector From TFS

Sunday, June 2, 2013

A custom data collector for automated tests was deployed successfully at a customer site. However when we've tried to replace it in MTM, old versions persisted in the database. The following procedure was used to unregister the stale data collectors. Get all data collectors from tbl_DataCollector: SELECT * FROM .. Execute the stored procedure prc_UnregisterDataCollector with parameters: @partitionId: the partitionId as appears in...
tags: , ,
no comments

List All Assemblies PE Flags

Tuesday, May 21, 2013

The following batch script lists all assemblies with their PE bitness flag using CorFlags.exe. @ECHO off SETLOCAL ENABLEDELAYEDEXPANSION ECHO Flag Assembly FOR /r %%i IN (*.dll,*.exe) DO ( SET RESPE32= FOR /F "delims=" %%a IN ('corflags "%%i" ^| FINDSTR "PE32"') DO ( SET RESPE32=%%a   ) SET RES32BITREQ=Unknown FOR /F "delims=" %%a IN ('corflags "%%i" ^| FINDSTR "32BITREQ"') DO ( SET RES32BITREQ=%%a IF "!RES32BITREQ!" == "32BITREQ :...
no comments