Rename a computer with PowerShell

Rename-Computer

In this “how” tutorial I will explain how to rename a computer in PowerShell. Using PowerShell allows you to go more empty than going through the graphical interface which requires going through several configuration windows. Rename a computer with PowerShell In a PowerShell prompt use: Rename-Computer The PowerShell command to rename a computer is Rename-Computer. …

Read moreRename a computer with PowerShell

Create a folder in PowerShell

To create a folder in PowerShell, use the New-Item cmdlet indicating the location and name of the folder and set the itemType parameter with the value Directory to indicate that you want to create a folder.

RDS farm: delete a server not available in the deployment

In this tutorial, we will see how to remove a server from a deployment that is no longer available. When connecting to the service broker, the following message is displayed: The following deployment servers are not in the server pool1. SERVER-FQDN .Add them to the server pool This type of error occurs if the server …

Read moreRDS farm: delete a server not available in the deployment

Create an Active Directory environment in PowerShell

Introduction In this tutorial, we will see how to create an Active Directory environment using PowerShell, that is to say the creation of the first domain controller which includes: The creation of the forest The creation of the domain The Active Directory tutorial: installing and configuring a domain controller explains how to do it using …

Read moreCreate an Active Directory environment in PowerShell

Active Directory: Joining a Computer to a Domain at the Command Line

NETDOM JOIN

Introduction The Active Directory domain join of a computer can be done using either the GUI or using command line and PowerShell. In this tutorial, I will explain how to join a computer to a domain using the various command lines that are: NETDOM DJOIN for off-line joining Add-Computer in PowerShell It is also possible …

Read moreActive Directory: Joining a Computer to a Domain at the Command Line

Jenkins: centralizing the management of scheduled tasks

Jenkins is a free open source software for continuous integration. It is normally used by development equipment to ensure non-regression of source code. In turn, it is possible to use Jenkins as a scheduler to centralize the administration of scheduled Windows and / or Linux tasks. I propose in this article to explain how to …

Read moreJenkins: centralizing the management of scheduled tasks

Manage Windows Server remotely in PowerShell with PSSession

Introduction In this tutorial, we will see how to remotely administer a Windows server in PowerShell (Powershell remoting) with PSSession. PSSession is the prefix of several Powershell commands that allow connection and management of it. All the commands in this tutorial are to be done with a PowerShell command prompt Prerequisites On the server where …

Read moreManage Windows Server remotely in PowerShell with PSSession

Delete a backup control point in Hyper-V without a delete option

snapshot

It happens in Hyper-V that a third-party software (backup) create a control point that is not possible to delete through the GUI. You have to switch to PowerShell to delete the control point. 1. Open a PowerShell administrator window and enter the following command to display the snapshots. This should display the control points of …

Read moreDelete a backup control point in Hyper-V without a delete option

Scheduled task run a PowerShell script

To run a PowerShell script using a scheduled task in Windows, you must set the Action to run a Program and configure it as below: 1 Program / Script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe2 Add arguments (optional) : -file folder_and_file.ps1