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

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

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

Windows Server 2022: install the SSH server

In this tutorial, I will show you how to install SSH server (OpenSSH) on Windows Server 2019/2022. As of Windows Server 2019, the OpenSSH server is a native additional feature. For previous versions of Windows Server a tutorial is available here: OpenSSH client and server – installation on Windows Server 2012R2 and 2016 Using an …

Read more

Jenkins: run PowerShell scripts

To complete the tutorial on Jenkins where I explain how to use it to run scheduled tasks and therefore turn it into a scheduler, I will show you in this tutorial, how to run PowerShell scripts. The Double-Hop Problem If you followed the first tutorial, I showed you how to run “simple” PowerShell cmdlets. If …

Read more

Chocolatey: software repository for Windows

In this article, I will tell you about a very practical little program to make it easier for you to install programs on workstations and servers. Chocolatey is to Windows what apt-get is to Debian. Chocolatey allows you to install, update and remove software in PowerShell (ps). To install Chocolatey you must launch the command …

Read more