myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Quick script for File Collection?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> Quick script for File Collection? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Quick script for File Collection? - 10/9/2008 2:06:58 PM   
cstevens


Posts: 117
Score: 0
Joined: 8/31/2001
Status: offline
Anyone have a script to trigger File Collection on the local system?

Thanks!

_____________________________

Chuck Stevens
Network Services/SMS Administrator
PEMCO Corporation
Seattle, WA
Post #: 1
RE: Quick script for File Collection? - 10/9/2008 2:31:42 PM   
okis14

 

Posts: 29
Score: 3
Joined: 12/28/2006
Status: offline
This information is just off the top of my head so double check this as I haven't used file collection in ages.

The file collection schedule id is {000000000-0000-0000-0000-000000000010} (I might be missing a zero somewhere in there) so you just pass that as a parameter to an already created script in the SMS Tool kit called sendsched.vbs.  This script can be run remotely or locally and can be used for any of the SMS client actions ie. Machine Policy, HWI, SWI, etc.

(in reply to cstevens)
Post #: 2
RE: Quick script for File Collection? - 10/9/2008 2:32:35 PM   
criticalerror

 

Posts: 84
Score: 0
Joined: 6/19/2007
Status: offline
Setup the file collection parameters in Software Inventory and then set the schedule for 5 minutes later.

Jeremy

(in reply to cstevens)
Post #: 3
RE: Quick script for File Collection? - 10/9/2008 2:34:51 PM   
cstevens


Posts: 117
Score: 0
Joined: 8/31/2001
Status: offline
Software Inventory is too intensive, and only is allowed to run once per week by policy; I just want to trigger File Collection after I execute a script that creates a particular file I want to collect.

_____________________________

Chuck Stevens
Network Services/SMS Administrator
PEMCO Corporation
Seattle, WA

(in reply to criticalerror)
Post #: 4
RE: Quick script for File Collection? - 10/9/2008 2:52:55 PM   
criticalerror

 

Posts: 84
Score: 0
Joined: 6/19/2007
Status: offline
So you need a script to scan the SMS DB for machines that contain a certain file and then collect that file to a central depository without using SMS? I would try what Okis suggested but it wont be any less intensive and uses the same processes as SWI .. thats how file collection within SMS works.

(in reply to cstevens)
Post #: 5
RE: Quick script for File Collection? - 10/9/2008 3:07:04 PM   
Rickym61

 

Posts: 92
Score: 4
Joined: 4/4/2007
Status: offline
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

(in reply to criticalerror)
Post #: 6
RE: Quick script for File Collection? - 10/9/2008 3:11:39 PM   
cstevens


Posts: 117
Score: 0
Joined: 8/31/2001
Status: offline
Sweet, thanks!

_____________________________

Chuck Stevens
Network Services/SMS Administrator
PEMCO Corporation
Seattle, WA

(in reply to Rickym61)
Post #: 7
Page:   [1]
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> Quick script for File Collection? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.328