Skip to content

Commit a8d3979

Browse files
committed
Clarify autobuild steps do not need to create remote folder and disable antivirus
1 parent bf2f57f commit a8d3979

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,14 @@ Next set this in a variable $IP_ADDY like:
103103

104104
**Note we are disabling the security checks in the remote powershell session. This could make you vulnerable to MITM attacks if on an unsafe network.**
105105

106-
Next create the remote powershell session and copy the files over by running:
106+
Next create the remote powershell session and copy the files over, and disable anti virus real time scanning (slows down compiling significantly):
107107
```
108108
$so = New-PsSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck;
109109
$remote = New-PSSession -ComputerName $IP_ADDY -UseSSL -SessionOption $so -Credential $cred;
110110
111-
Invoke-Command -Session $remote $_ -ScriptBlock { mkdir C:/CefSharpDockerfiles; }
112111
Get-ChildItem -Path "./" | Copy-Item -ToSession $remote -Destination "C:/CefSharpDockerfiles/"
113-
114112
Copy-Item -ToSession $remote daemon.json -Destination "c:/ProgramData/docker/config/daemon.json";
115-
Invoke-Command -Session $remote $_ -ScriptBlock { Restart-Service Docker; }
113+
Invoke-Command -Session $remote -ScriptBlock { Restart-Service Docker;Set-MpPreference -DisableRealtimeMonitoring $true; }
116114
```
117115

118116
Next we will "enter" the remote machine via powershell:

0 commit comments

Comments
 (0)