Skip to content

Commit 3bba31d

Browse files
committed
Remove antivirus configuration from AD installation
1 parent 97382a1 commit 3bba31d

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

samples/action_scripts/commands.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@
322322

323323
"INSTALL_ACTIVE_DIRECTORY_DOMAIN_SERVICES": {
324324
"TYPE": "SCRIPT",
325-
"TODO": "XXX: Confirm if relative paths for FILENAME work here on CI: ./action_scripts/install_active_directory_forest.ps1",
326-
"FILENAME": "/r7-source/vm-automation/samples/action_scripts/install_active_directory_forest.ps1",
325+
"FILENAME": "action_scripts/install_active_directory_forest.ps1",
327326
"INTERPRETER": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
328327
"UPLOAD_DIR": "C:\\Windows\\Temp",
329328
"SUCCESS_TYPE": "PROCESS",

samples/action_scripts/install_active_directory_forest.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ secedit /export /cfg c:\secpol.cfg
2525
secedit /configure /db c:\windows\security\local.sdb /cfg c:\secpol.cfg /areas SECURITYPOLICY
2626
rm -force c:\secpol.cfg -confirm:$false
2727

28-
##################################################################################
29-
# Disable Antivirus
30-
##################################################################################
31-
32-
if (Get-Module -ListAvailable -Name Defender) {
33-
Set-MpPreference -DisableRealtimeMonitoring $true
34-
New-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" -Name DisableAntiSpyware -Value 1 -PropertyType DWORD -Force
35-
}
36-
3728
#####################################################################################
3829
# Forest installation
3930
#####################################################################################

0 commit comments

Comments
 (0)