Finding certificates with powershell

In Powershell by 631007nLeave a Comment

Get the thumbprint value Get-ChildItem -path cert:\LocalMachine\My Get the serial number. the powershell command below gives you a list of all the certificates installed in the Personal section of the local machine store. Get-ChildItem -path cert:\LocalMachine\My | Format-Table serialnumber, subject -AutoSize to save both outputs to a file just add >> [path to file] to the commands

View Post

Configure NLog from code

In C# by 631007nLeave a Comment

Nlog is a .net logging framework that can be configured from a config file or from inside your code itself. below i will give a brief description of how to configure Nlog from code. The code

View Post

Elmah and MsSql

In C# by 631007nLeave a Comment

Elmah is a open source error logging module for .net projects. It is easily integrated with any web projects and provides a basic interface for viewing the captured exceptions.