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 more

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