PowerShell: show the contents of a text file

In this tutorial, I will show you how to display the contents of a text file (txt, yaml, php, vbs…) in a PowerShell window. In fact, it’s very simple, just use the Cmdlet Get-Content and specify the file name. Which give : If you are familiar with the cat command in Linux, you can also …

Read more



Windows Server: disable a cipher suite

In this tutorial, I will walk you through how to disable a cipher suite also call cipher. If you arrive on this tutorial by a search engine, there is a good chance that it is due to a vulnerability test and that you have an alert that goes up because vulnerable cryptographic suites (cipher) are …

Read more



WSUS manually import an update from the Microsoft Update Catalog

In this tutorial, I will explain how to manually import a site updatehttps://www.catalog.update.microsoft.com/ in WSUS with PowerShell. By default, this operation is possible automatically by passing the console and provided that you use Internet Explorer 11. In 2022, who still uses this browser? Download the update and retrieve its GUID Go to the site https://www.catalog.update.microsoft.com/ …

Read more



Delete a DNS zone on Windows Server

In this tutorial, I will explain how to delete a DNS zone on Windows Server. Open the DNS administration console On the Windows server, open the DNS administration console, it is accessible by the server manager by clicking on Tools then on DNS. View DNS Zones In the administration console, expand the Forward lookup zones …

Read more



GPO: force updates from the console

Since Windows 2012, it is possible to force the update of group policies from the Group Policy Management console. It is no longer necessary to go through all the computers and do a gpudapte. To work, the firewall must allow RPC calls to pass. Force update of GPOs remotely 1. Open the Group Policy Management …

Read more



Exchange: add a database in PowerShell

Dans ce tutoriel, je vais vous expliquer comment ajouter une base de données sur un serveur Exchange en PowerShell. The use of PowerShell saves time because several manipulations are to be done, enter go through the ECP then on the list of services to restart a service for consideration. Add a database to Exchange in …

Read more



DFS: delete a namespace on Windows Server

In this tutorial, I will explain how to delete a DFS namespace on Windows Server. In the vast majority of cases, you won’t normally need this tutorial 😉 Although this operation is relatively simple to perform using the graphical interface, it sometimes happens that it does not go as planned, especially if you have planned …

Read more



Share a folder in PowerShell

Create a share with PowerShell: This tutorial explains how to share a folder in Powershell granting full access to Everyone. The folder to be shared must already exist on the server. Open a PowerShell window On the server, open a PowerShell command prompt as Administrator. Use the New-SmbShare cmdlet Enter the following command to create …

Read more