Create a custom array with Powershell I will describe in this post how to create a custom array with Powershell. With “custom array”, I mean array with custom column name. In some case, you will probably need to build an
Split a string with multiple delimiters I will describe in this post how to split a string with multiple delimiters. To begin and to remind you how to split a string, you can use the Powershell method “split” : $string
PKI : Recover the certificate private key with Microsoft tools If a certificate does not contain the private key, the following part will be blank: Follow these steps to include the private key in the certificate file : Snap-In Configuration
Shared folder recycle bin clean up With this script you will be able to delete the content of the recycle bin of a network shared folder. It can be very useful if the shared folder contains the home directory for
Backup/Restore all DNS zones These scripts backup and restore all DNS zones on specific DNS server (source). The backup script uses the Powershell cmdlet get-wmiobject to list the DNS zone present in the WMI database and then export each zone using
Get server hostnames on which MSSQLServer service is installed With this simple script, you will be able to get the server names on which the MS SQL Server service is installed. First, an array is built with the computer names
This script will help you to monitor a resource failover on a cluster. This script has been successfully tested on a Microsoft cluster running on a Windows Server 2012 operating system. The following steps are performed : use the following
Create DNS PTR record if A record exists. This script will help you to have a DNS PTR record for each existing A record in your DNS zone. If a A record has been created in the DNS zone ($dnsDomainName
This script will help you to set the PwdLastSet attribute to the current date and time for multiple users. The user list in this script is built from an organizational unit content. You can adapt it with your own requirement.
This script will help you to Add a SNMP permitted manager on remote hosts. In this example the hostname of the SNMP permitted manager is : snmpmgr01. The remote hosts name are listed in a text file (one hostname per