forked from Kaidja/ConfigMgrSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
How to enable Configuration Manager EndPoint Protection collection alerts
44 lines (40 loc) · 1.74 KB
/
How to enable Configuration Manager EndPoint Protection collection alerts
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
36
37
38
39
40
41
42
43
44
# Malware is detected
$NEWEPAlert = ([WMIClass]"\\Localhost\root\SMS\Site_PRI:SMS_EPAlert").CreateInstance()
$NEWEPAlert.AlertState = 5
$NEWEPAlert.InstanceNameParam1 = "EP Servers"
$NEWEPAlert.Name = "Malware detection alert for collection: EP Servers"
$NEWEPAlert.ParameterValues = '1'
$NEWEPAlert.TypeInstanceID = "PRI0001C"
$NEWEPAlert.Severity = 1
$NEWEPAlert.TypeID = 31
$NEWEPAlert.Put()
# The same type malware is detected on a number of computers
$NEWEPAlert = ([WMIClass]"\\Localhost\root\SMS\Site_PRI:SMS_EPAlert").CreateInstance()
$NEWEPAlert.AlertState = 5
$NEWEPAlert.InstanceNameParam1 = "EP Servers"
$NEWEPAlert.Name = "Malware outbreak alert for collection: EP Servers"
$NEWEPAlert.ParameterValues = '1'
$NEWEPAlert.TypeInstanceID = "PRI0001C"
$NEWEPAlert.Severity = 1
$NEWEPAlert.TypeID = 32
$NEWEPAlert.Put()
# The same type malware is repeatedly detected within the speficied interval on a computer
$NEWEPAlert = ([WMIClass]"\\Localhost\root\SMS\Site_PRI:SMS_EPAlert").CreateInstance()
$NEWEPAlert.AlertState = 5
$NEWEPAlert.InstanceNameParam1 = "EP Servers"
$NEWEPAlert.Name = "Repeated malware detection alert for collection: EP Servers"
$NEWEPAlert.ParameterValues = '21'
$NEWEPAlert.TypeInstanceID = "PRI0001C"
$NEWEPAlert.Severity = 1
$NEWEPAlert.TypeID = 33
$NEWEPAlert.Put()
# Multiple types of malware are detected on the same computer with the specified interval
$NEWEPAlert = ([WMIClass]"\\Localhost\root\SMS\Site_PRI:SMS_EPAlert").CreateInstance()
$NEWEPAlert.AlertState = 5
$NEWEPAlert.InstanceNameParam1 = "EP Servers"
$NEWEPAlert.Name = "Multiple malware detection alert for collection: EP Servers"
$NEWEPAlert.ParameterValues = '21'
$NEWEPAlert.TypeInstanceID = "PRI0001C"
$NEWEPAlert.Severity = 1
$NEWEPAlert.TypeID = 34
$NEWEPAlert.Put()