Automatically re-configure secondary Bind server to primary With this script, you will able to re-configure a DNS server running on Bind9 from a secondary to a primary role : For “secondary”, I talk about the server that hosts the slave
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
This script will help you to delete folders on remote hosts. The folder names in the example are like $NtUninstallKB* and are located on the remote system admin$ shares. The remote computers are listed on the file C:\temp\BOOK1.txt Script :
This script will help you to change the user UPN (userPrincipalName attribute in the Active Directory) for all the user objects located in the OU OU=Users,OU=Dept,DC=domain,DC=local,DC=net Old UPN : domain.local.net New UPN : newdomain.com To setup a new UPN, follow
This script will help you to disable and move inactive computer accounts to a target OU in the Active Directory. The steps are the following : list all computer accounts inactive for more than 90 days ping each inactive computers