HomepageKnowledge base › How to use command-line version (version 7.0 and newer)

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.)
-scanlocalScan local PC
-scanpc:PC1,PC2,...Scan remote PC(s)
-scanFromIP:IPScan IP range (from IP)
-scanToIP:IPScan IP range (to IP)
-hive:Reg hive pathScan registry hive
-regfile:Reg file pathScan registry file
-adobe:cache.db file pathScan Adobe cache.db
-anotherWindows:Win folder(Available in ver 9.0 and higher) Scan another Windows system (bootable or not)
-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
-virtualpc:path to VHD/VHDX(Available in ver 12.0 and higher) Scans VirtualPC (vhd, vhdx, iso) virtual machine
Remote scan options
-user:USERNAMERemote PC username
-password:PASSWORDRemote PC user password
-encryptedPassword:PASSWORDRemote PC user password in encrypted form
-encryptPassword:PASSWORDEncrypt password for -encryptedPassword
-resolveHostsResolve IP addresses to computer names
-pingHostsPing IP addresses before connect
-pingTimeout:millisecondsPing timeout (default is 5000 ms)
-UseRemoteRegistry(Available in ver 8.0 and higher) Use remote registry when scanning remote PCs (instead of client deployment)
-ThreadsCount:No(Available in ver 11.0 and higher) Number of PCs to scan at the same time
-ComputerScanType:type(Available in ver 12.0 and higher) Specify type of network scan you would like to perform:
0 - Automatic (default)
1 - Force Windows scan
2 - Force SSH Mac OSX scan
3 - Force SSH Wine scan
-SSHPort:port(Available in ver 12.0 and higher) SSH port for SSH scan (for MacOSX or Wine scan)
Default (if not specified): 22
-SSHPrivKeyFilePath:path(Available in ver 12.0 and higher) Path to private key file for SSH login without password
Output formats
-file:FILEPATHOutput filename
-fileAsPCNameSet 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
-cloudDB:Cloud DB ID(Available in ver 11.0 and higher) Results will be added into Recover Keys cloud database instead of output file
-CSVOutput type as comma-separated file
-TSFOutput type as tab-separated file
-XMLOutput type as XML format
-HTMLOutput type as HTML format
-TXTOutput type as Text file format
-DOCOutput type as Microsoft Word file
-RTFOutput type as RichText file
-XLSOutput 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
-JSON(Available in ver 11.0 and higher) Output type as JSON format
Cloud database related
-cloudDB:Cloud DB ID(Available in ver 11.0 and higher) Results will be added into Recover Keys cloud database instead of output file
-cloudUserEmail:EMAIL(Available in ver 11.0 and higher) Your email for authentication Recover Keys Cloud
-cloudPassword:PASS(Available in ver 11.0 and higher) Password for authentication to Recover Keys Cloud
-cloudEncryptedPassword:PASS(Available in ver 11.0 and higher) Password in encrypted form for authentication to Recover Keys Cloud. Use -encryptPassword option to get your encrypted password
Mac OSX scan related
-disableMacScanDon't check if network computer is Mac OSX
-hideMacDeepScanDon't show "Deep scan" on network Mac OSX
-hideMacDevicesDon't show "Devices and Mac info" on network Mac OSX
Advanced
-hideheaderDo not include header in output file
-hideDeepScanDon't perform deep scan
-allowSoftware:name1;name2Filter scan output by software title
-denySoftware:name1;name2Filter scan output by software title
-allowSoftwareRegExp:regexpFilter scan output by software title
-denySoftwareRegExp:regexpFilter scan output by software title
-ListAllSoftwareList all supported software titles
-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)
-ScanOSInfo(Available in ver 10.0 and higher) Will also scan for operating system information
-ScanHardware(Available in ver 12.0 and higher) Will also scan for basic hardware info
-debugShow 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:SERIALSerial number of your copy of Recover Keys (not needed if registered with GUI version)
-MacKey:SERIALSerial number of your copy of Mac KeyFinder (not needed if registered with GUI version)

Usage examples

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

NOTE

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