Tools 2 Use - SMS Scripting Guide
Systems Management Server Scripting Guide
The SMS 2003 Scripting Guide is a .chm file you can down load that provides over 40 scripts, ranging from tasks such as creating advertisements to running queries. It explains the basics of SMS objects, WMI, and VBScript through a series of 'How To' examples. Each example has extensive and appropriate links to other resources, such as the SMS SDK, the WMI SDK, and the Windows 2000 Scripting Guide.
BTW - if you don't know about them, check out the IT Pro's secret weapon - the Scripting Guys here: http://www.microsoft.com/technet/community/columns/scripts/sghits.mspx
Then mosey on over to the next big thing - Virtual Labs - you will thank me one day: http://www.microsoft.com/technet/traincert/virtuallab/default.mspx