Simple snippet that may be useful given current events: #include <File.au3>
$SearchString = "eDell"
$sCommands = 'Powershell dir Cert:\CurrentUser\AuthRoot | findstr ' & $SearchString
$iPID = Run(@ComSpec & " /c " & $sCommands, "", @SW_HIDE , $stdout_child)
$sOutput = ""
While 1
$sOutput &= StdoutRead($iPID)
If @error Then
ExitLoop
EndIf
WEnd
$sRtn = StringLen(StringStripWS($sOutPut , 8)) > 1 ? $sOutput : $SearchString & " Certificate NOT found"
msgbox(0, '' , $sRtn)