Bonjour,
je voudrais sur un windows 10 pro pouvoir modifier depuis un batch ou powershell des clefs de registre mais je suis un peut bloqué, je rencontre un problème d'accès.
J'ai essayé en:
- Administrateur élevé
- avec "C:\PSTools\psexec.exe" -s -i -d "C:\Scripts\ControlRepertoire.bat"
- j'ai essayer en ajoutant tout le monde en controle totale dans regedit sur la clef de windows Defender...
- j'ai essayé avec reg import mais pas mieux.
mais rien y fait...
Quelqu'un aurait une solution pour que je puisse automatiser cette tâche? avec n'importe quel language tant que cela fonctionne!
Ps: la seule regle qui fonctionne est la suivante: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /F /V EnableMulticast /T REG_DWORD /D 0
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 @echo off chcp 28591 > nul call :DesallowLLMNR call :WindowsDefenderConfig pause goto :eof Rem Désactivation de la découverte réseau :DesallowLLMNR reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient" /F /V EnableMulticast /T REG_DWORD /D 0 goto :eof Rem Désactivation de la découverte réseau :WindowsDefenderConfig rem Activation de l'antispyware reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender" /V DisableAntiSpyware /T REG_DWORD /F /D 0 rem Activation de l'antivirus reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender" /V DisableAntiVirus /T REG_DWORD /F /D 0 rem Ajout des exclusions HMX reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions" reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /V "C:\\Program Files (x86)\\1\\3\\System\\x.exe" /T REG_DWORD /F /D 0 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /V "C:\\HMX5" /T REG_DWORD /F /D 0 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /V "C:\\Program Files (x86)\\1\\Synopta\\System\\xx.exe" /T REG_DWORD /F /D 0 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /V "C:\\Program Files (x86)\\1\\Synopta\\System\\xxx.exe" /T REG_DWORD /F /D 0 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /V "C:\\HortiMaX" /T REG_DWORD /F /D 0 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /V "C:\\Program Files (x86)\\1" /T REG_DWORD /F /D 0 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /V "C:\\ProgramData\\1" /T REG_DWORD /F /D 0 goto :eof
Partager