POWERSHELL   Powershell – Script to clone AD groups

Last week I came across a situation where I needed to copy Active Directory groups (including members) to new groups.


Suppose we want to clone the “SG-Test1” and “SG-Test2” groups
Windows – Powershell script to clone AD groups - Old Groups

We need two groups (“SG-NewTest1” and “SG-NewTest2”) to be created with the same members included
Windows – Powershell script to clone AD groups - New Groups

Using this powershell scripts you can either clone a single group a list … Read more

Windows   Windows – Renew certificate assigning the same private key

When renewing a certificate it is not necessary to generate a new csr. This is possible by maintaining the same private key.

When received the renewed certificate from the 3rd party certification authority, we can try to import it and assign the private key from the management console (mmc -> certificates).
One of the options that are shown when … Read more

Windows   Windows – Add secondary IP addresses to interface

Sometimes it is neccesary to configure a network interface to listen on more than one IP (for example, web servers containing multiple SSL certificates…)
Add secondary IP addresses to interface

After adding the new secondary IPs, If not explicitly avoided, outgoing traffic can be generated also by these instead of only by the primary. These can lead to connection errors (for example firewall receiving unexpected Read more

Windows   Windows – Cannot cannot shrink a volume beyond the point where any unmovable files are located

I finally received my new Dell Inspiron 15 Serie 5000 with a 1TB hard disk!


I would like (maybe very shortly) to move the system and applications to a new SSD drive (perhaps 120GB or 240GB size). So, given that the C: (system) partition has only 30 GB used (~896 GB of total size), one of the first configurations … Read more

POWERSHELL   Powershell – Schedule a task on a list of servers remotely

Maybe you have been interested in configuring a scheduled task on a set of servers of your enviroment. Depending on the quantity it can become a tedious… or a reeeaaaaally tedious process (connect to every server, run "scheduled tasks" console, configure…)

So, as we, sysadmins, usually do… let's make the work easier using scripts…

In this example, the goal is Read more

IRONPORT icon   Ironport – Schedule automation scripts on Windows

On a previous post I explained how to Automate Ironport commands / scripts from Windows. At the end of the post I suggested configuring the task scheduler to execute a bat script, for example, to save a backup copy of the configuration… So, here we go!

Example 1: Simple configuration backup via email

Assuming all the necessary preparations … Read more

POWERSHELL   Powershell – Script to move profile folders

Sometimes we need to move the profiles to a new folder, drive… due to space requirements for example.
The usual way is via the graphical interface:
Powershell - Script to move profile folders 1

But performing this action for a set of users can take us a lot of time and, as a sysadmin should think, the best way to complete this tasks is to work some … Read more