Quick and short way of enumerating COM classes is using the WMI class Win32_ClassicComClassSetting.
Example:
Get-WmiObject win32_ClassicComClassSetting | Select-Object ProgID | Group-Object ProgID | Select-Object Name | Sort-Object Name
Quick and short way of enumerating COM classes is using the WMI class Win32_ClassicComClassSetting.
Example:
Get-WmiObject win32_ClassicComClassSetting | Select-Object ProgID | Group-Object ProgID | Select-Object Name | Sort-Object Name
Show Merlin:
$agent = new-object -com Agent.Control.2
$agent.Connected = 1
$agent.Characters.Load("Merlin")
$merlin = $agent.Characters.Character("Merlin")
$merlin.Show()
List animations:
$merlin.AnimationNames
Activate animation:
$merlin.Play("Congratulate")
Have Merlin tell when process was started:
Get-Process | select -First 10 | foreach {$merlin.Speak($_.ProcessName + " was started " + $_.StartTime) | out-null; Start-Sleep 5 }
Microsoft Agent is being deprecated and will not be included in future versions of the Windows operating system.