First I am pretty new to VBScript. The above code eumberates registry hive values and dumps into a text file. But it could do its duty well. After finishing writing all the registry values, it shows an error message. Like this..."Microsoft windows based script host...........Please tell microsoft about this problem"