Attiva registrazione moduli: valore del Registro di sistema EnableModuleLogging (ModuleNames)UtenteHKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames
- ID criterio
- EnableModuleLogging
- Ambito
- Configurazione computer, Configurazione utente
- Supportato in
- Almeno Windows 7 o famiglia Windows Server 2008
- Origine
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
- Categoria
- Componenti di Windows › Windows PowerShell
Registro
EnableModuleLogging
REG_DWORDComputerUtente…\Software\Policies\Microsoft\Windows\PowerShell\ModuleLoggingHKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging
HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging
HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging
- Valore abilitato
- 1
- Valore disabilitato
- 0
Applica con .reg · CMD · PowerShell
ComputerImpostazione globale del computer
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging] ; Opzioni (usarne solo una) ; Abilitato "EnableModuleLogging"=dword:00000001 ; Disabilitato "EnableModuleLogging"=dword:00000000
CMD
:: Opzioni (usarne solo una) :: Abilitato reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 1 /f :: Disabilitato reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Force | Out-Null # Opzioni (usarne solo una) # Abilitato New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 1 -Force | Out-Null # Disabilitato New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 0 -Force | Out-Null
UtenteImpostazione per account
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging] ; Opzioni (usarne solo una) ; Abilitato "EnableModuleLogging"=dword:00000001 ; Disabilitato "EnableModuleLogging"=dword:00000000
CMD
:: Opzioni (usarne solo una) :: Abilitato reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 1 /f :: Disabilitato reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging" /v "EnableModuleLogging" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Force | Out-Null # Opzioni (usarne solo una) # Abilitato New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 1 -Force | Out-Null # Disabilitato New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging' -Name 'EnableModuleLogging' -PropertyType DWord -Value 0 -Force | Out-Null
(valori dell'elenco)
REG_SZUtenteComputer…\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNamesHKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames Chiave corrente
HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames
HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Nomi moduli
- Tipo di valore
- REG_SZ
Applica con .reg · CMD · PowerShell
UtenteImpostazione per account
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames] "<inserisci valore>"="<inserisci valore>"
CMD
reg add "HKCU\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" /v "<inserisci valore>" /t REG_SZ /d "<inserisci valore>" /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 '<inserisci valore>' -PropertyType String -Value '<inserisci valore>' -Force | Out-Null
ComputerImpostazione globale del computer
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames] "<inserisci valore>"="<inserisci valore>"
CMD
reg add "HKLM\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" /v "<inserisci valore>" /t REG_SZ /d "<inserisci valore>" /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 '<inserisci valore>' -PropertyType String -Value '<inserisci valore>' -Force | Out-Null