Re: Quelques réglages avancés mais cachées pour Windows Defender sur W10
#5
QUelque chose doit m'echapper.. Sous PS en mode administrateur, j'ai sous Powershell en mode admin :
PS C:\WINDOWS\system32>
Set-MpPreference -PUAProtection $TrueSet-MpPreference : Impossible de traiter la transformation d'argument sur le paramètre «PUAProtection». Impossible de convertir la valeur «True» en type «
Microsoft.PowerShell.Cmdletization.GeneratedTypes.MpPreference.PUAProtectionType». Erreur: «Cast non valide de 'System.Boolean' en
'Microsoft.PowerShell.Cmdletization.GeneratedTypes.MpPreference.PUAProtectionType'.»
Au caractère Ligne:2 : 33
+ Set-MpPreference -PUAProtection $True
+ ~~~~~
+ CategoryInfo : InvalidData : (:) [Set-MpPreference], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-MpPreference
PS C:\WINDOWS\system32>
Set-MpPreference -PUAProtection 1Set-MpPreference : Classe non valide
Au caractère Ligne:2 : 1
+ Set-MpPreference -PUAProtection 1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Set-MpPreference], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Set-MpPreference
Modifié par : HommeTranquille sur 27/6/2017 9:59:23