exporting large binary values with vbs scripts is rather difficult so the simple solution i have is to silently export this reg file with a script like so ----------------the reg file------------------------ Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\MS Exchange-Einstellungen] [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\MS Exchange-Einstellungen\0a0d020000000000c000000000000046] "1102032f"=hex:01,00,00,00,75,00,00,00,0c,00,00,00,00,00,00,00,38,a1,bb,10,05,\ e5,10,1a,a1,bb,08,00,2b,2a,56,c2,00,00,45,4d,53,4d,44,42,2e,44,4c,4c,00,00,\ 00,00,00,00,00,00,1b,55,fa,20,aa,66,11,cd,9b,c8,00,aa,00,2f,c4,5a,0c,00,00,\ 00,53,41,47,53,52,56,31,00,2f,6f,3d,44,53,43,20,53,6f,66,74,77,61,72,65,20,\ 41,47,2f,6f,75,3d,44,53,43,53,41,47,2f,63,6e,3d,52,65,63,69,70,69,65,6e,74,\ 73,2f,63,6e,3d,63,64,00,00,00,00 ---------------end of reg file------------------------ -------------------export script (1)--------------------- Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run ("regedit /s path\regfile.reg") WScript.Quit ---------------------end------------------------------- if you prefer to use environment variables use this script --------------------export script(2)--------------------- Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run (WshShell.ExpandEnvironmentStrings("regedit /s %var_name%\path\regfile.reg")) WScript.Quit