REG Input Format Examples

Log Parser

REG Input Format Examples

Upload Registry to SQL Table

Load a portion of the registry into a SQL table:
LogParser "SELECT * INTO MyTable FROM \HKLM" -i:REG -o:SQL -server:MyServer -database:MyDatabase -driver:"SQL Server" -username:TestSQLUser -password:TestSQLPassword -createTable:ON

Registry Type Distribution

Display the distribution of registry value types:
LogParser "SELECT ValueType, COUNT(*) INTO DATAGRID FROM \HKLM GROUP BY ValueType"


© 2004 Microsoft Corporation. All rights reserved.