sábado, 14 de enero de 2023

WINDOWS. GPO. Install deploy software

 Purpose

How to install programs automatically through GPOs

Information

Identify the most important parameters

Steps

Create the GPO and play with this options



by GoN | Published: January 14 2023 | Last Updated:

miércoles, 28 de diciembre de 2022

WINDOWS. Scheduled Task. Delete logs

Purpose

Create a scheduled task to delete old logs on the server

Information

This commnad don't need install 

Steps

Connect to server, open Windows scheduled tasks

Create a basic Task:


Specify the SYSTEM user.


Create action:


COMMAND:   gci 'C:\inetpub\logs\LogFiles' -Include '*.log' -Recurse | ? LastWriteTime -LT (Get-Date).AddDays(-60) | Remove-Item

*gci alias is Get-ChildItem

by GoN | Published: December 28 2022 | Last Updated:

MONITORING. NAGIOS. Range alerts.

Purpose

How to specify parameters system value range in one alert.

Information

For example I want monitoring the AD Servers time when there are 30 secons of diference with the DC. This 30 secons could be positives or negatives diference.

Critica: -c -60:60
Warning: -v -30:30

Steps


by GoN | Published: December 28 2022 | Last Updated: