How to use Recover Keys command-line version?

  If you purchased Enterprise license you will find command-line version as a separate .exe file in Recover Keys installation folder ("C:\Program Files\Recover Keys" by default).


Following command line options are available:

Argument Description
What to scan (local / remote / hive / etc.)
-scanlocal Scan local PC
-scanpc:PC1,PC2,... Scan remote PC(s)
-scanFromIP:IP Scan IP range (from IP)
-scanToIP:IP Scan IP range (to IP)
-RescanAllDBComputers (Available in ver 10.0 and higher) Rescan all computers in current database. -db:PATH option should also be present
-scanXML:PATH (Available in ver 10.0 and higher) Scan list of computers in XML file generated by "Select computers to scan" dialog in GUI version
-anotherWindows:Win folder (Available in ver 9.0 and higher) Scan another Windows system (bootable or not)
-hive:Reg hive path Scan registry hive
-regfile:Reg file path Scan registry file
-adobe:cache.db file path Scan Adobe cache.db
Remote scan options
-user:USERNAME Remote PC username
-password:PASSWORD Remote PC user password
-encryptedPassword:PASSWORD Remote PC user password in encrypted form
-encryptPassword:PASSWORD Encrypt password for -encryptedPassword
-resolveHosts Resolve IP addresses to computer names
-pingHosts Ping IP addresses before connect
-pingTimeout:miliseconds Ping timeout (default is 5000 ms)
-UseRemoteRegistry (Available in ver 8.0 and higher) Use remote registry when scanning remote PCs (instead of client deployment)
Output formats
-file:FILEPATH Output filename
-fileAsPCName Set output filename to scanned PC name
-fileAsPCNameAndTime (Available in ver 9.0 and higher) Set output filename to scanned PC name and current date/time
-folder:PATH (Available in ver 8.0 and higher) Output folder (separate file will be created for each scanned PC)
-db:PATH (Available in ver 10.0 and higher) Results will be added into Recover Keys database instead of output file
-CSV Output type as comma-separated file
-TSF Output type as tab-separated file
-XML Output type as XML format
-HTML Output type as HTML format
-TXT Output type as Text file format
-DOC Output type as Microsoft Word file
-RTF Output type as RichText file
-XLS Output type as Microsoft Excel
-MySQL (Available in ver 10.0 and higher) Output type as MySQL SQL
-SQLite (Available in ver 10.0 and higher) Output type as SQLite SQL
-MSSQL (Available in ver 10.0 and higher) Output type as MSSQL SQL
Mac OSX scan related
-disableMacScan Don't check if network computer is Mac OSX
-hideMacDeepScan Don't show "Deep scan" on network Mac OSX
-hideMacDevices Don't show "Devices and Mac info" on network Mac OSX
Advanced
-hideheader Do not include header in output file
-hideDeepScan Don't perform deep scan
-allowSoftware:name1;name2 Filter scan output by software title
-denySoftware:name1;name2 Filter scan output by software title
-allowSoftwareRegExp:regexp Filter scan output by software title
-denySoftwareRegExp:regexp Filter scan output by software title
-ListAllSoftware List all supported software titles
-ScanOSInfo (Available in ver 10.0 and higher) Will also scan for operating system information
-ShowInstalledSoftware (Available in ver 8.0 and higher) Will also scan for installed software
-ShowInstalledUpdates (Available in ver 8.0 and higher) Will also scan for installed updates
-DeepScanMSFolder (Available in ver 8.0 and higher) Will scan Microsoft folder in deep scan (will affect performance)
-DeepScanHKCR (Available in ver 8.0 and higher) Will scan HKEY_CLASSES_ROOT in deep scan (will affect performance)
-debug Show debug information (-file option must be present)
Shotgun mode scan
-ShotgunScan (Available in ver 8.0 and higher) Shotgun scan of local PC
-ShotgunScanMSFolder (Available in ver 8.0 and higher) Scan Microsoft folder
-ShotgunScanHKCR (Available in ver 8.0 and higher) Scan HKEY_CLASSES_ROOT
Registration
-key:SERIAL Serial number of your copy of Recover Keys (not needed if registered with GUI version)
-MacKey:SERIAL Serial number of your copy of Mac KeyFinder (not needed if registered with GUI version)

Usage examples


RecoverKeysCmd.exe -scanlocal -csv "-file:D:\keys.csv"
RecoverKeysCmd.exe -scanlocal -XLS -fileAsPCName
RecoverKeysCmd.exe -scanpc:COMP1 -user:Administrator -password:XXX -xls -hideheader "-file:D:\keys.xls"
RecoverKeysCmd.exe -scanFromIP:192.168.1.1 -scanToIP:192.168.1.100 -XLS "-folder:C:\RK\"
RecoverKeysCmd.exe -RescanAllDBComputers "-db:D:\rk.sqlite"


NOTE


Command-line version is available only in Enterprise license and not included in demo version.