Windows Server
Use the hosts file to simulate a DNS record on Windows
Location of the hosts file : C:\Windows\System32\drivers\etc. Pour ajouter un enregistrement : 1. Start notepad as administrator. 2. Open the hosts file located in C:\Windows\System32\drivers\etc. To display the hosts file which has no extension it is necessary to select All files (*. *) 3. Add a record in the form: 4. Save and close the …
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 …
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 …
GPO: installation of definitions for Office
Through this article, I will show you how to set up the necessary files to set up Office 2016 using GPOs in an Active Directory environment. It is possible to add settings to the Group Policy system by adding ADMX and ADML files. The explanations below can be applied to any definitions you may download …
Outlook 2010+: change location of OST file
In this tutorial, I will explain how to change the location of the OST file and more specifically to put it on a network share. Outlook is installed on an RDS farm and email accounts are in “online” mode. Therefore there is no data file on the server. Users complain of repeated slowness and crashes. …
Rename an Active Directory domain
The following procedure shows you how to rename an Active Directory domain. 1. Open a command window in “administrator” mode and enter the following command which will generate a Domainlist.xml file : 2. Edit the xml file, changing your old domain to the new one: In the file, I modified rdr-it.intra to rdr-it.com. 3. Enter …
Export / Import a scheduled task
In this tutorial, I will tell you how to export and import a scheduled task. This tutorial applies to both Windows Server and the Desktop version (Windows 10). To illustrate this tutorial, I will export a scheduled task that runs a PowerShell script that allows restarting a computer. The scheduled task runs the ps-restartcomputer.ps1 script …
PowerShell and network drives
In this tutorial on “scripting”, I suggest you discover or see how to manage network drives with PowerShell and you will see that it is not that “simple”. In the tutorial: Network Drive Mapping: GPO and Script, I explain how to map a network drive with Group Policy using and how to do it with …
Manage the DNS cache on Windows Server
In this “tutorial”, I will give you some PowerShell cmdlets to manage your DNS server cache on Windows Server. To be more precise, we will see 4 cmdlet PowerShell * -DnsServerCache cmdlets. Show-DnsServerCache The first command displays the DNS cache: The output of the command gives all DNS records cached on the server. In console …