Hi,

I want to use somewhat like this to import settings into the registry
from a .REG-File on a Windows XP or Win2000-Client (with REG.EXE from XP):

Code:
$cmd="reg import \\DOMAIN-DC\NETLOGON\SET-ORIG.reg"
SHELL $cmd


-> This displays me: "Command successfully".

If I want to surpress this message I can use on the Windows-CMD-Processor:

reg import reg import \\DOMAIN-DC\NETLOGON\SET-ORIG.reg > NUL
This works fine.

But this in a KIX-Script WON´T work:
Code:
$cmd="reg import \\DOMAIN-DC\NETLOGON\SET-ORIG.reg > NUL"
SHELL $cmd


-> This displays me: "Error: To many commandline parameters".

I´ve tried several things like:
Code:
$cmd='reg import \\DOMAIN-DC\NETLOGON\SET-ORIG.reg >NUL: 2>NUL:'
SHELL $cmd


but this display also: "Error: To many commandline parameters".

Anyone having a tip how I can import from a .REG-File without having
any message on the screen ?!

Regards,

Luziekix