wmi question with mdt 2008 task sequence

Discussion in 'Scripting' started by James, Jul 30, 2008.

  1. James

    James Guest

    I need to get the size of the hard drive(s) installed in a system and based
    on the size partition the drive a certian way. If > 36GB I need to make one
    20GB partition but if <= 36GB I need to create one partition using the whole
    drive. I need to plug this condition into an mdt 2008 task sequence. I
    already know I can do this using vbscript.... add task that is a vbscript
    that gets drive properties and sets task sequence variable(s), then have 2
    subsequent tasks that execute based on the value of the task squence
    variable the vbscript previously set. Both of these tasks would be partition
    and format tasks, one for the <=36GB scenario, and one for >36GB scenario,
    and only one of them would ever wind up running.

    but what I'm wondering is if this is a scenario where wmi would be better?
    simpler? cleaner? etc... I have never used wmi but mdt 2008 allows you to
    insert a wmi query as a condition in a task sequence... so I'm wondering if
    this little task is a good reason for me to try some wmi?
     
    James, Jul 30, 2008
    #1
    1. Advertisements

  2. James

    J Ford Guest

    Aside from implementing WMI in VBScript what other options have you looked at
    to do this task?

    WMI is convenient and easy to use, and can be used to run locally or on
    remote machines. The biggest draw back is that it can be slow...
     
    J Ford, Jul 31, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.