COMPONENTE SE EJECUTA PERO NO CAMBIA EL REGISTRO

Formula aquí directamente tus consultas sobre SM. ¡Los expertos te ayudarán!
Responder
fossilgt
Usuario registrado
Usuario registrado
Mensajes: 147
Registrado: Jue, 23 Jul 2015, 17:58

COMPONENTE SE EJECUTA PERO NO CAMBIA EL REGISTRO

Mensaje por fossilgt »

Buen dia
estimados colegas...

aquí les traigo un nuevo caso...
resulta que por petición de un cliente, necesita que 50 equipos no tengan acceso al panel de control.

y para hacerlo de manera rapida creamos un componente en el cual se hizo un batch que esta de la siguiente manera:
script1.png
script1.png (53.88 KiB) Visto 4275 veces
@echo on
::Deshabilitar las PANEL DE CONTROL

reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoControlPanel /t REG_DWORD /d 1 /f

GPUPDATE /FORCE


se ejecuta a través de la consola, me muestra el siguiente mensaje
Ventana de consola
Ventana de consola
script.png (68.33 KiB) Visto 4275 veces
sin embargo no logra hacer el cambio en el registro de windows...
ya probé de varias formas, incluso cree un archivo Ejecutable (.EXE) y singue sin realizar los cambios en el registro...
lo extraño es que si ejecuto el escript directamente en el equipo si me funciona..
por que lo descarto que exista restricción de Windows.
en la carpeta C:\ProgramData\CentraStage\Packages especificamente en 85d95816-1ea7-48a1-9ada-e3ea78283a11# que es la carpeta
en donde se descargo la tarea y se ejecuto genera 2 archivos

1 command.bat en donde si lo abro esta: @echo on
::Deshabilitar las PANEL DE CONTROL

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoControlPanel /t REG_DWORD /d 1 /f

GPUPDATE /FORCE

2. cscompmeta el contenido es el siguiente de abajo
ÿÿÿÿ ACore, Version=4.4.2074.2074, Culture=neutral, PublicKeyToken=null /CentraStage.Cag.Core.Agent.SoftwareJobComponent _jobId_command_credentialsRequired
_fileCount_componentName_id _userName _password
_variables_timeOut_description_hash_icon_interpreter_options
_extension_compVariables_offlineTask_urls _taskType âSystem.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]”System.Collections.Generic.List`1[[CentraStage.Cag.Core.Agent.ComponentVariable, Core, Version=4.4.2074.2074, Culture=neutral, PublicKeyToken=null]]System.String[] µ@echo on
::Deshabilitar las PANEL DE CONTROL

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoControlPanel /t REG_DWORD /d 1 /f

GPUPDATE /FORCE NO Panel de Control $85d95816-1ea7-48a1-9ada-e3ea78283a11 (Desactiva el panel de control de Windows

{0} bat
âSystem.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] VersionComparerHashSize ’System.Collections.Generic.GenericEqualityComparer`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
”System.Collections.Generic.List`1[[CentraStage.Cag.Core.Agent.ComponentVariable, Core, Version=4.4.2074.2074, Culture=neutral, PublicKeyToken=null]] _items_size_version .CentraStage.Cag.Core.Agent.ComponentVariable[] Úhttps://s3.eu-west-1.amazonaws.com/sm-cpt.pandasecurity.com/85d95816-1ea7-48a1-9ada-e3ea78283a11/85d95816-1ea7-48a1-9ada-e3ea78283a11.zip?X-Amz-Security-Token=AgoJb3JpZ2luX2VjEFQaCWV1LXdlc3QtMSJGMEQCIGKMhq8bT%2FdwdJ077%2FKDORwExZX%2F15D1fao6G1dofrNYAiAdN680qTLKnEEEE6vaA%2FqoslfxbkDgld9miMvsrpeYtSraAwhtEAAaDDQzMjYwMTM0ODQ1MyIMxbZPaTyHsCdKQmm6KrcD9lzIa8qexMuLKmsde%2BjLRS1zTdTiZmoXLq5fTBWB%2BKjAqDDiEOaVlaHphrhjNaR8LdLPMpRd29JCt2SpS8bEo6PD3e8F%2BVM6DKoA9rYhvryWJ29FUs0PmD%2BL%2FnRFdO5%2B7hwWXXxWTLz1XcI5THiH2tU5r9wkYFOtgm5gfRLbs4Z9p14lFTYYP4dz5s6zeinj12BBoo3cWY3jwlVogwQ5eRwFNt5PWkC0WgJssCo3kEAWeNTN1%2B9Iw9WrDaQxUNQH5p0EzFPcScGuzYWAoSQFWGJZCVyoI1VLNSw7407OhqXKMhG3WmNtNLdWyIysp1l%2FxEHiC8VdTxAiKYMKeZro7BxmmgSMX6cnF8Mqw%2F2QoCffZZrxQ45m%2BraGtHPY6bNrvEPp1Cr6%2BbM5Sb71fage9rVjmuBNzmoZUXiZygAZ1trd6Q5Of2WisDUDr6E0GqKqeQN%2FpdrVUEBmdAWr2x7zPc7YKFrCYJBleSyo519uqB8XvAygsyNqMVdZm5JJBDENZzVAKeieSuOVrxEOJAimGG0sbTtNw9AK5FZLlJ3t6HP4t0R1MRPiypVXa7LOtQwKjZbPzQxg1jD7qr3nBTq1ASeTthHZGFh0zHzcq%2F2jGfS8w9oj1wYopux%2BtXTTOTn1YexOQHzB3or9Tl3%2B8sv4AAYpe0M0v3%2BsMaURWet2VIXcoplDUJHy%2F98CpbLd5z25AmOSO0Vb%2B95WLM541vBjAmSz4uXr6kXycMfhNLPwHsIWiRfcbIMw6QseUqCKYYY5WNEmCrRmK%2FO8cjCq6fcv2MFOCGc2FWeD4cg9oq7N2jNafxAvX4bjgbLQ%2FI11ywVlx67%2FT18%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20190530T043400Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=ASIAWJOIMXFSZ3TWMA4J%2F20190530%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Signature=cb7237f671f42196aa627c8c54b07281affab673ecb884c28ba97e2581aa6925 ”
https://sm-cpt.pandasecurity.com/85d958 ... tWZ3wk4%3D ’System.Collections.Generic.GenericEqualityComparer`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] ,CentraStage.Cag.Core.Agent.ComponentVariable



quedo a la espera de sus opiniones saludos
Darth Panda
Moderador Oficial
Moderador Oficial
Mensajes: 1025
Registrado: Jue, 27 Sep 2012, 10:33

Re: COMPONENTE SE EJECUTA PERO NO CAMBIA EL REGISTRO

Mensaje por Darth Panda »

coge un pantallazo del stderr, que es el qeu nos va a decir el error al ejecutar el script
Dpto. Soporte Técnico

Panda Security
The Cloud Security Company
fossilgt
Usuario registrado
Usuario registrado
Mensajes: 147
Registrado: Jue, 23 Jul 2015, 17:58

Re: COMPONENTE SE EJECUTA PERO NO CAMBIA EL REGISTRO

Mensaje por fossilgt »

gracias por tu pronta respuesta...

aquí esta la captura de pantalla de STDERR
stdr.png
stdr.png (47.57 KiB) Visto 4197 veces
en donde te puedes ver que no existe ningun mensaje de error

por lo que les invito a que emulen el mismo cambio en el registro y se daran cuenta que supuestamente
se ejecuta pero cuando se revisa la llave del registro no realiza el cambio..

quedo a la espera de su pronta respuesta...

saludos
Darth Panda
Moderador Oficial
Moderador Oficial
Mensajes: 1025
Registrado: Jue, 27 Sep 2012, 10:33

Re: COMPONENTE SE EJECUTA PERO NO CAMBIA EL REGISTRO

Mensaje por Darth Panda »

Efectivamente no se ve error.
Pero me temo que no damos soporte a scripts desarrollados por usuarios.
Solo damos soporte a scripts desarrollados por la tienda. los que vienen integrados en la propia consola de System Management.
Dpto. Soporte Técnico

Panda Security
The Cloud Security Company
Responder

Volver a “SM - Incidencias”