Upload files to "Fix Scripts"
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
Stop-Service "Windows Agent Maintenance Service"
|
||||||
|
Stop-Service "Windows Agent Service"
|
||||||
|
Stop-Service "AutomationManagerAgent"
|
||||||
|
|
||||||
|
$file = "C:\Program Files (x86)\N-able Technologies\Windows Agent\config\AVDefenderConfig.xml"
|
||||||
|
$find = "<attemptedCountForModuleInstall>3</attemptedCountForModuleInstall>"
|
||||||
|
$replace = "<attemptedCountForModuleInstall>0</attemptedCountForModuleInstall>"
|
||||||
|
(get-content $file -raw) -replace $find, $replace | out-file $file
|
||||||
|
|
||||||
|
(get-content $file -raw) -match $replace
|
||||||
|
|
||||||
|
Start-Service "Windows Agent Maintenance Service"
|
||||||
|
Start-Service "Windows Agent Service"
|
||||||
|
Start-Service "AutomationManagerAgent"
|
||||||
Reference in New Issue
Block a user