Implement matching logic to Windows 2008 on handling of secrets.