The article posted on PowerShell Magazine provides an easy example that allows for verification of local computer credentials using the System.DirectoryServices.AccountManagement namespace. The full article is available on PowerShell Magazine:
http://www.powershellmagazine.com/2013/05/22/pstip-verify-local-sam-store-account-credentials/