| | |

RES Automation Manager, server installations and automated diskpart

1 min read

When I install servers I like to have a second drive to put data on. In this case we created servers based on ESXi so I created a single disk for the operating system (Windows 2008 R2) and a separate second disk for the data. When deploying via WDS/MDT the OS is installed on the first disk but the second disk had to be formatted and I had to assign a drive letter manual.

So I created a module in RES Automation Manager that enabled me to execute a task:

resam0001

In this task executing I put the diskpart utility : C:\Windows\System32\diskpart.exe /S, the /S stands for script. This way diskpart will expect a file after the command for custom settings.

resam0002

As you can see there’s a GUID after the diskpart.exe /s command. I stored a file called diskpart.txt in the resources of RES Automation Manager as a file on a fileserver. Using this file I can create a second drive (D:\Data). The file contained the following information:

SELECT DISK 1
CREATE PARTITION PRIMARY
ASSIGN LETTER=D
SELECT PARTITION 1
FORMAT FS=NTFS LABEL=”Data” QUICK

I then used this module in my server installation Run Book or Project and after the execution I have a server with a D:\Data drive without manual interaction.

The following two tabs change content below.

Kees Baggerman

Kees Baggerman is Senior Technical Director — Performance & Solutions Engineering R&D at Nutanix, where he leads a global team responsible for defining how enterprise applications are delivered on the Nutanix platform. A former Citrix Technology Professional and NVIDIA Enterprise Platform Advisor, he has spent 15+ years driving EUC strategy and technical direction across architecture, product, and customer success. He has been writing here since 2011 — sharing what he learns at the intersection of platform engineering and enterprise IT.
Kees Baggerman

Kees Baggerman

Senior Technical Director at Nutanix - Former Citrix CTP - NVIDIA Enterprise Platform Advisor - 15+ years in EUC

Kees Baggerman is Senior Technical Director — Performance & Solutions Engineering R&D at Nutanix, where he leads a global team responsible for defining how enterprise applications are delivered on the Nutanix platform. A former Citrix Technology Professional and NVIDIA Enterprise Platform Advisor, he has spent 15+ years driving EUC strategy and technical direction across architecture, product, and customer success. He has been writing here since 2011 — sharing what he learns at the intersection of platform engineering and enterprise IT.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.