Activar registro de módulos: valor del Registro EnableModuleLogging (ModuleLogging)EquipoHKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging
- Id. de directiva
- EnableModuleLogging
- Ámbito
- Configuración del equipo, configuración de usuario
- Compatible con
- Al menos familia de Microsoft Windows 7 o Windows Server 2008
- Origen
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versión 1.0)
- Categoría
- Componentes de Windows › Windows PowerShell
Registro
EnableModuleLogging
REG_DWORDEquipoUsuario…\Software\Policies\Microsoft\Windows\PowerShell\ModuleLoggingHKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging Clave actual
HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging
HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging
- Valor al habilitar
- 1
- Valor al deshabilitar
- 0
Aplicar con .reg · CMD · PowerShell
EquipoConfiguración global del equipo
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging] ; Opciones (usar solo una) ; Habilitada "EnableModuleLogging"=dword:00000001 ; Deshabilitada "EnableModuleLogging"=dword:00000000
CMD
:: Opciones (usar solo una) :: Habilitada reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 1 /f :: Deshabilitada reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 0 /f
PowerShell
# Común: crear la clave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Force | Out-Null # Opciones (usar solo una) # Habilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 1 -Force | Out-Null # Deshabilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 0 -Force | Out-Null
UsuarioConfiguración por cuenta
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging] ; Opciones (usar solo una) ; Habilitada "EnableModuleLogging"=dword:00000001 ; Deshabilitada "EnableModuleLogging"=dword:00000000
CMD
:: Opciones (usar solo una) :: Habilitada reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 1 /f :: Deshabilitada reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 0 /f
PowerShell
# Común: crear la clave New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Force | Out-Null # Opciones (usar solo una) # Habilitada New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 1 -Force | Out-Null # Deshabilitada New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 0 -Force | Out-Null
(valores de lista)
REG_SZEquipoUsuario…\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNamesHKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames
HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames
HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames
- Valor al habilitar
- Depende del valor de la opción
- Elemento
- Nombres de módulos
- Tipo de valor
- REG_SZ
Aplicar con .reg · CMD · PowerShell
EquipoConfiguración global del equipo
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames] "<introducir valor>"="<introducir valor>"
CMD
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" /v "<introducir valor>" /t REG_SZ /d "<introducir valor>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames' -Name '<introducir valor>' -PropertyType String -Value '<introducir valor>' -Force | Out-Null
UsuarioConfiguración por cuenta
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames] "<introducir valor>"="<introducir valor>"
CMD
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" /v "<introducir valor>" /t REG_SZ /d "<introducir valor>" /f
PowerShell
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames' -Name '<introducir valor>' -PropertyType String -Value '<introducir valor>' -Force | Out-Null