grafana docker
This commit is contained in:
7
Scripts/powershell/Get-GPO.ps1
Normal file
7
Scripts/powershell/Get-GPO.ps1
Normal file
@@ -0,0 +1,7 @@
|
||||
# Az összes GPO végigfésülése az "SMTP" kulcsszóra
|
||||
Get-GPO -All | ForEach-Object {
|
||||
$report = Get-GPOReport -Guid $_.Id -ReportType Xml
|
||||
if ($report -like "*SMTP*") {
|
||||
Write-Host "Találat: $($_.DisplayName)" -ForegroundColor Green
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
# SNMP An auf Windows Server
|
||||
Install-WindowsFeature -Name "SNMP-Service" -IncludeAllSubFeature -IncludeManagementTools
|
||||
# Firewall für SNMP Dienst öffnen
|
||||
New-NetFirewallRule -Name "SNMP" -DisplayName "Allow SNMP" -Protocol UDP -LocalPort 161 -Action Allow -Direction Inbound -RemoteAddress 10.102.1.59 -Profile Domain
|
||||
New-NetFirewallRule -Name "SNMP" -DisplayName "Allow SNMP" -Protocol UDP -LocalPort 161 -Action Allow -Direction Inbound -RemoteAddress 10.102.1.201 -Profile Domain
|
||||
|
||||
Reference in New Issue
Block a user