Ricerca virus in macro crittografate contenute in cartelle di lavoro di Excel in formato Open XML: valore del Registro di sistema excelbypassencryptedmacroscanUtenteHKCU\software\policies\microsoft\office\16.0\excel\security
- ID criterio
- L_DeterminewhethertoforceencryptedExcel
- Ambito
- Configurazione utente
- Supportato in
- Almeno Windows Server 2008 R2 o Windows 7
- Origine
- Microsoft 365 Apps / Office Administrative Templates (versione 5568.1000)
- Categoria
- Microsoft Excel 2016 › Opzioni di Excel › Sicurezza
Registro
excelbypassencryptedmacroscan
REG_DWORDUtenteHKCU\software\policies\microsoft\office\16.0\excel\security Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- -
| Voce | Valore memorizzato |
|---|---|
| Ricerca virus in macro crittografate (impostazione predefinita) | 0 |
| Ricerca virus se è disponibile software antivirus | 1 |
| Carica macro senza ricerca virus | 2 |
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\excel\security] ; Opzioni (usarne solo una) ; Ricerca virus in macro crittografate (impostazione predefinita) "excelbypassencryptedmacroscan"=dword:00000000 ; Ricerca virus se è disponibile software antivirus "excelbypassencryptedmacroscan"=dword:00000001 ; Carica macro senza ricerca virus "excelbypassencryptedmacroscan"=dword:00000002
CMD
:: Opzioni (usarne solo una) :: Ricerca virus in macro crittografate (impostazione predefinita) reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "excelbypassencryptedmacroscan" /t REG_DWORD /d 0 /f :: Ricerca virus se è disponibile software antivirus reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "excelbypassencryptedmacroscan" /t REG_DWORD /d 1 /f :: Carica macro senza ricerca virus reg add "HKCU\software\policies\microsoft\office\16.0\excel\security" /v "excelbypassencryptedmacroscan" /t REG_DWORD /d 2 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Force | Out-Null # Opzioni (usarne solo una) # Ricerca virus in macro crittografate (impostazione predefinita) New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'excelbypassencryptedmacroscan' -PropertyType DWord -Value 0 -Force | Out-Null # Ricerca virus se è disponibile software antivirus New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'excelbypassencryptedmacroscan' -PropertyType DWord -Value 1 -Force | Out-Null # Carica macro senza ricerca virus New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\excel\security' -Name 'excelbypassencryptedmacroscan' -PropertyType DWord -Value 2 -Force | Out-Null