Article
RSS
Code: Looking at Tasks under Virtual Server
Our favorite Virtual PC/Virtual Server scripting guru comes to our aid again, this time, with a script that will retrieve all active task objects from within a Virtual Server instance and then display the Task ID, description, and percentage complete.


Set vs = CreateObject("VirtualServer.Application")
Set tasks = vs.Tasks
If tasks.Count = 0 Then
      Wscript.Echo "There are no tasks"
Else
      Wscript.Echo "Active tasks: "
       For Each task in tasks
               Wscript.Echo " Task: " & task.ID & " : " & task.Description & " : " & task.PercentCompleted
      Next
End If

Make sure to check out the original posting on Ben's site to read and add comments. Be sure to thank him to keep them coming.

Visit the original post, here.

Published Friday, March 24, 2006 10:24 PM by David Marshall
Filed under:
Share this post: del.ici.ousDel.ici.ous Digg ThisDigg Newsvine ThisNewsvine Reddit ThisReddit Slashdot It!Slashdot TechnoratiTechnorati
Comments
There are no comments for this post.
To post a comment, you must be a registered user. Registration is free and easy! Sign up now!
Calendar
<March 2006>
SuMoTuWeThFrSa
2627281234
567891011
12131415161718
19202122232425
2627282930311
2345678
Archives