Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > wmi question with mdt 2008 task sequence

Reply
Thread Tools Display Modes

wmi question with mdt 2008 task sequence

 
 
James
Guest
Posts: n/a

 
      07-30-2008
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?



 
Reply With Quote
 
 
 
 
J Ford
Guest
Posts: n/a

 
      07-31-2008
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...

"James" wrote:

> 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?
>
>
>
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2008 server task manager Peter Hatzis Windows Server 0 10-01-2009 08:04 AM
2008 task scheduler Tom_Slycke Windows Server 1 07-15-2009 01:17 PM
Quick Question About SBS 2008 and Terminal Server 2008 Mark Lasky Windows Small Business Server 2 05-11-2009 03:36 PM
SBS 2008 / Win 2008 Server / SQL 2005 Licensing Question Pryan Windows Small Business Server 9 01-06-2009 06:01 PM
Another Scheduled Task failure in Windows 2008 question Joe Grover Windows Server 6 10-21-2008 04:06 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59