Enable/Disable FusionLog Powershell script
If you use Windows and don’t use Powershell you should. Really you should. It’s great for getting all the little repetitive things out of the way.
Like for example enabling/disabling your Fusion Log every time you need to figure out why assembly binding has gone wrong. So here you go. Just put these in your profile:
function global:Enable-FusionLog {
Remove-ItemProperty HKLM:Software\Microsoft\Fusion -name EnableLog -ErrorAction SilentlyContinue
[void](New-ItemProperty HKLM:Software\Microsoft\Fusion -name EnableLog -propertyType dword -ErrorAction Stop)
Set-ItemProperty HKLM:Software\Microsoft\Fusion -name EnableLog -value 1 -ErrorAction Stop
Write-Host "Fusion log enabled. Do not forget to disable it when you are done"
}
function global:Disable-FusionLog {
Remove-ItemProperty HKLM:Software\Microsoft\Fusion -name EnableLog -ErrorAction SilentlyContinue
Write-Host "Fusion log disabled"
}
Awesome.
Also we talked Powershell at yesterday’s GNO.NET and Cody Gros showed PowerGUI - which a totally free and seemingly awesome powershell editor. Woo!
Write a comment: