¿Modificar clave reg usando archivo .vbs?

Trate de modificar la siguiente clave de registro usando vbscript, los ejecute como administrador y aun desactivando el UAC sin éxito, por favor como podría hacerlo, cabe recalcar que con un archivo bat si logro mi objetivo pero por ahora por favor si se puede en vbscript... Gracias

===================================================================================

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\PeaZip]
"Lang"="es"

[HKEY_CURRENT_USER\SOFTWARE\PeaZip\Options]
"MenuIcons"=dword:00000001
"ElimDupExtract"=dword:00000000
"ContextMenu"=dword:00000323

==================================================

Set WshShell = CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\PeaZip", "Lang", "REG_SZ", "es"
WshShell.RegWrite "HKCU\Software\PeaZip\Options", "MenuIcons", "REG_DWORD", 1
WshShell.RegWrite "HKCU\Software\PeaZip\Options", "ElimDupExtract", "REG_DWORD", 0
WshShell.RegWrite "HKCU\Software\PeaZip\Options", "ContextMenu", "REG_DWORD", 803
Set WshShell = Nothing

==================================================

Set objSHL = CreateObject("WScript.Shell")
objSHL.RegWrite "HKCU\Software\PeaZip", "Lang", "REG_SZ", "es"
objSHL.RegWrite "HKCU\Software\PeaZip\Options", "MenuIcons", "REG_DWORD", 1
objSHL.RegWrite "HKCU\Software\PeaZip\Options", "ElimDupExtract", "REG_DWORD", 0
objSHL.RegWrite "HKCU\Software\PeaZip\Options", "ContextMenu", "REG_DWORD", 803
Set objSHL = Nothing

===================================================

Set objShell = CreateObject("WScript.Shell")
objShell.RegWrite "HKCU\Software\PeaZip", "Lang", "REG_SZ", "es"
objShell.RegWrite "HKCU\Software\PeaZip\Options", "MenuIcons", "REG_DWORD", 1
objShell.RegWrite "HKCU\Software\PeaZip\Options", "ElimDupExtract", "REG_DWORD", 0
objShell.RegWrite "HKCU\Software\PeaZip\Options", "ContextMenu", "REG_DWORD", 803
Set objShell = Nothing

1 respuesta

Respuesta

I. Hola Compañer@, en mi caso no soy conocedor sólo lector pero quisiera trasladarle la información en Inglés y español que vi sobre este tema por si pudiese serle de alguna utilidad mientras le atiende un experto de primera mano, y ofrecerme para, en caso de no ser así, derivar su consulta a un programador o experto en VBA. Le ruego me disculpe las molestias de tanta lectura y la imprecisión, suerte.

https://stackoverflow-com.translate.goog/questions/28416995/update-registry-using-vbs?_x_tr_sl=en&_x_tr_tl=es&_x_tr_hl=es&_x_tr_pto=sc 

https://superuser-com.translate.goog/questions/578931/how-to-add-a-registry-key-using-vbscript?_x_tr_sl=en&_x_tr_tl=es&_x_tr_hl=es&_x_tr_pto=sc 

https://stackoverflow.com/questions/9945878/vbscript-writing-into-registry 

https://stackoverflow.com/questions/18959968/getting-vbs-script-to-change-registry 

https://wshop-fi.translate.goog/eng/modify-the-windows-registry-with-vbscript/?_x_tr_sl=en&_x_tr_tl=es&_x_tr_hl=es&_x_tr_pto=sc 

https://superuser.com/questions/1366887/want-to-add-reg-using-vbscript 

https://www.youtube.com/watch?v=dIGGrTpVBNw 

https://www.youtube.com/watch?v=j7tBRE1FEgg 

https://cprovolt-wordpress-com.translate.goog/2009/04/03/vb-script-to-modify-registry-keys/?_x_tr_sl=en&_x_tr_tl=es&_x_tr_hl=es&_x_tr_pto=sc 

https://community.spiceworks.com/t/vbscript-to-edit-registry-based-on-hostname/647845 

https://www-itninja-com.translate.goog/question/vbscript-to-update-registry-entries?_x_tr_sl=en&_x_tr_tl=es&_x_tr_hl=es&_x_tr_pto=sc 

https://stackoverflow.com/questions/67217911/update-registry-key-if-equal-to-a-value-with-vbs 

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas