hi,

LoadKey is a function to load a registry file like ntuser.dat, not to import a .reg file.

You need a command like :

Code:
$regfile = ""c:\marcel\netwerk-policy-settings.reg"
shell 'regedit /s "'+$filename+'"'



Take care that with this method, parameters are applied definitively in the registry.

For non-permanent modifications, you should use AD policies.
_________________________
Christophe