Bonjour à tous j'ai un petit pb, je voudrais lire les valeurs d'une clé d'un serveur distant. En local j'y arrive mais pas à distance!
Voici mon code:
<?
$WshShell = new COM ('WScript.Shell');
$registre = "\\\\150.38.42.87\HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\ISNT5\WhiteBlackLists\Global\l_editBL_1";
//$registre = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\SuperSocketNetLib\ProtocolOrder";
$valor = $WshShell->RegRead($registre);
?>
sinon j'ai ça comme message d'erreur:
Warning: (null)(): Invoke() failed: Exception occurred. Source: WshShell.RegRead Description: Invalid root in registry key "\\150.38.42.87\HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\ISNT5\WhiteBlackLists\Global\l_editBL_1". in F:\IMSS\SiteWeb\list.php on line 65
Merci de m'aider!