Could someone point me to some documentation on how to script MS PowerPoint with PowerShell/COM?
I'm reading 'Windows® PowerShell™ 2.0: Administrator’s Pocket Consultant', and it has a section 'Working with COM and .NET Framework Objects' which has the following Excel example, but I cannot find any example that deals with PowerPoint.
$a = New-Object -comobject "Excel.Application"
$a.Visible = $True
$wb = $a.workbooks.add()
$ws = $wb.worksheets.item(1)
$ws.cells.item(1,1) = "Computer Name"
$ws.cells.item(1,2) = "Location"
$ws.cells.item(1,3) = "OS Type"
$ws.cells.item(2,1) = "TechPC84"
$ws.cells.item(2,2) = "5th Floor"
$ws.cells.item(2,3) = "Windows Vista"
$a.activeworkbook.saveas("c:\data\myws.xls") |