|
Rickym61 -> RE: Quick script for File Collection? (10/9/2008 3:07:04 PM)
|
This should do it, its from the book SMS 2003 Recipies, a must for any SMS Admin. You can download some the scripts from the book here http://www.apress.com/book/downloadfile/3017 Const FILECOLL = "{00000000-0000-0000-0000-000000000010}"
strComputer = "."
Set objCCM = GetObject("winmgmts://" & strComputer & "/root/ccm")
Set objClient = objCCM.Get("SMS_Client")
Set objSched = objClient.Methods_("TriggerSchedule"). _
inParameters.SpawnInstance_()
objSched.sScheduleID = FILECOLL
objCCM.ExecMethod "SMS_Client", "TriggerSchedule", objSched
|
|
|
|