Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/04/2009, 03:25
aitorperez
 
Fecha de Ingreso: julio-2008
Mensajes: 37
Antigüedad: 15 años, 10 meses
Puntos: 0
Ayuda con Vbs en cliente

Tengo un fichero Vbs que es el siguiente:

Const HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Interne t Settings"
strValueName = "SyncMode5"
dwValue = 3
objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

Lo que hace este fichero es cambiar los permisos en el explorador
Lo ejecuto con exec pero no me hace nada.


Se puede ejecutar este fichero desde php de forma que al cliente le cambie ese permiso automaticamente?

Gracias por vuestra ayuda