Backup / restore domain GPOs

Backup all GPOs 

Backup-Gpo -All -Path "\\Server1\GpoBackups"

Restore all GPOs
 

Restore-GPO -All -Domain "contoso.com" -Path "\\Server1\Backups"

Office 365 SMTP conf

smtp.office365.com:587
starttls
auth

mpro-mp-br.mail.protection.outlook.com:25
no auth

smtp-mail.outlook.com:587
tls
auth

Zabbix 7.0 agent2 oracle linux

 Oracle linux 8

/etc/yum.conf

enableproxy=1
proxy=http://10.20.0.4:3128

 

Install Zabbix repository

rpm -Uvh https://repo.zabbix.com/zabbix/7.0/oracle/8/x86_64/zabbix-release-latest-7.0.el8.noarch.rpm
 

dnf clean all
 

Install Zabbix agent 2

dnf install zabbix-agent2  

Remove zabbix agent

dnf remove zabbix-agent

Fix netplan gateway4 deprecated

 

example:                  

network:
  version: 2
  ethernets:
    ens192:
      dhcp4: false
      dhcp6: false
      addresses:
        - 10.20.0.16/23
      nameservers:
        addresses:
        - 10.20.0.11
        search:
        - mpro.gov
      routes:
        - to: default
          via: 10.20.0.250
        - to: 10.0.0.0/8
          via: 10.20.0.254
        - to: 172.16.0.0/12
          via: 10.20.0.254


Fix permissions:
chmod 600 /etc/netplan/*.yaml 

 

 

LDAP auth test

sudo apt install ldap-utils


ldapsearch -x -H ldap://ldap-server-hostname_or_IP -D "cn=username,ou=users,dc=example,dc=com" -W -b "dc=example,dc=com"

ESXi enable remote syslog

  esxcli system syslog config set --loghost=udp://10.20.0.27:514 esxcli network firewall ruleset set --ruleset-id=syslog --enabled=true  esx...

Mais vistos