13.4. Summary
You can use the PowerShell new-object cmdlet with the -comObject parameter to create and automate COM objects.
This chapter showed you how you can create an Internet Explorer window and, from the PowerShell command line, navigate to a desired URL. You learned how you can create scripts using COM automation to make use of Internet Explorer. You also saw examples illustrating how you can create Google searches from the Windows PowerShell command line.
You can automate Microsoft Word and Microsoft Excel by using COM automation from PowerShell. You saw how you can access data held in an Access database, as illustrated in an example.
You also learned how Windows PowerShell creates synthetic types to distinguish the type of different kinds of COM objects.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access