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

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

 

            routes:
                - to: default
                  via: 192.168.10.1
 

example:                  
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: false
      dhcp6: false
     addresses:
      - 192.168.10.10/24
     routes:
      - to: default
        via: 192.168.10.1

     nameservers:
       addresses: [192.168.10.1]

Fix permissions:
chmod 600 /etc/netplan/your_config_file.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"

How to list open ports and application using them in Windows

  netstat -abn or netstat -a -n -p tcp -o

Mais vistos