Ubuntu: add a certificate from an internal certificate authority

In this tutorial, I will show you how to add the certificate of an internal CA on an Ubuntu machine. In business, we often use an Enterprise Certification Authority, which allows us to generate certificates for applications, services, computers and users. If you have servers under Ubuntu and you want, for example, to use scripts …

Read more

IIS – Add the X-Forwarded-For field in the logs

In this tutorial, I will explain how to add the X-Forwarded-For field in the IIS logs, in order to retrieve the real IP address of a visitor when a reverse proxy is upstream of the IIS server. On the IIS Web server, open the Internet Services Management console. Select server 1 and click Logging 2. …

Read more

PowerShell: sign scripts

In this tutorial, I will explain how to sign your scripts. Before going into the subject, we will see why signing the scripts, the main reason is security. If your environment (computers + servers) is configured to run only signed scripts and a PowerShell script is launched in a malicious file, it will be neutralized …

Read more

PowerShell: download a file in HTTP, HTTPS

In this tutorial, I will explain how to download a file using PowerShell that is on a server accessible in HTTP or HTTPS. This can be particularly useful when administering a server without an interface, where the only browser installed is Internet Explorer or in a script. There are several solutions to download one using …

Read more

Powershell: create a text file and write in it

In this “small” tutorial, I will explain how to create a text file in Powershell and then how to write content in it. In this tutorial, we will see 4 Powershell Cmdlets: We will start by creating the file. Here the file is created in the current folder, it is possible to put an absolute …

Read more

Zabbix: restart a Windows service

In this tutorial, I will explain how to restart a Windows service where Zabbix agent is installed. If you followed the tutorial: Zabbix – Restart a service on Ubuntu – Linux, it’s almost identical. To illustrate this tutorial, we will try to restart the Winlogbeat service. As you can see, on several servers the Winlogbeat …

Read more

GPO: configure default programs

In this tutorial, I will explain how to configure the default applications (browser, PDF reader…) using a Group Policy (GPO) in an Active Directory environment. Puzzle of IT services, it is the use of default programs for certain types of files (PDF, Images) or even Internet browser, the configuration of such a group strategy allows …

Read more

Ubuntu: enable the firewall and manage it with UFW

In this tutorial, I will explain how to activate the firewall on a computer with Ubuntu and manage it with UFW. UFW for Uncomplicated Firewall is a simplified Netfilter command line utility, it is a simple alternative to iptables, which allows to manage firewall rules. If UFW is not installed, use the following command to …

Read more

Exchange 2016 / 2019: delete a mailbox while keeping the user

In this tutorial, I will explain how to delete a mailbox on Exchange 2016/2019, without deleting the user who is linked to this mailbox. On the ECP interface, if you use the trash can icon in addition to deleting the mailbox, this deletes the user in the Active Directory, or it happens in some cases …

Read more