hi all,

who can tell me why i cant import my reg file with SU.exe?
The error result tell me it is succesfully but when i go see in the registry, i dont see the new key.

my script :

Break on

$SuUsername="userid"
$SuPassword="password"
RunSuAs("c:\winnt\system32\regedit.exe /s c:\1.reg")
? @SERROR

sleep 10
;=======================================================================================================================
Function RunSuAs($CommandLine)
$Devpath="\ntreskit\Su.exe"
If Exist($Devpath)
SetL "SU_DOMAIN=FRITZEU"
SetL "SU_PASSWORD=$SuPassword"
SetL "SU_USERNAME=$SuUsername"
SetL "SU_COMMANDLINE=$CommandLine"
EndIf
EndFunction

many many thanks in advance for who can help me

regards,

patrick