{"id":194,"date":"2011-09-01T22:34:52","date_gmt":"2011-09-01T20:34:52","guid":{"rendered":"http:\/\/henrik.familiendamgaard.dk\/blog\/?p=194"},"modified":"2011-09-02T11:33:06","modified_gmt":"2011-09-02T09:33:06","slug":"fun-with-microsoft-agent-and-powershell","status":"publish","type":"post","link":"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/","title":{"rendered":"Fun with Microsoft Agent and PowerShell"},"content":{"rendered":"<p>Show Merlin:<\/p>\n<pre escaped=\"true\" lang=\"powershell\" line=\"1\">$agent = new-object -com Agent.Control.2\r\n$agent.Connected = 1\r\n$agent.Characters.Load(\"Merlin\")\r\n$merlin = $agent.Characters.Character(\"Merlin\")\r\n$merlin.Show()<\/pre>\n<p>List animations:<\/p>\n<pre escaped=\"true\" lang=\"powershell\" line=\"1\">$merlin.AnimationNames<\/pre>\n<p>&nbsp;<\/p>\n<p>Activate animation:<\/p>\n<pre escaped=\"true\" lang=\"powershell\" line=\"1\">$merlin.Play(\"Congratulate\")<\/pre>\n<p>&nbsp;<\/p>\n<p>Have Merlin tell when process was started:<\/p>\n<pre escaped=\"true\" lang=\"powershell\" line=\"1\">Get-Process | select -First 10 | foreach {$merlin.Speak($_.ProcessName + \" was started \" + $_.StartTime) | out-null; Start-Sleep 5 }<\/pre>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.microsoft.com\/products\/msagent\/main.aspx\">Microsoft Agent is being deprecated<\/a> and will not be included in future versions of the Windows operating system.<\/p>\n<!-- AddThis Share Buttons generic via filter on the_content -->\n<!-- AddThis Related Posts generic via filter on the_content -->\n","protected":false},"excerpt":{"rendered":"<p>Show Merlin: $agent = new-object -com Agent.Control.2 $agent.Connected = 1 $agent.Characters.Load(&#8220;Merlin&#8221;) $merlin = $agent.Characters.Character(&#8220;Merlin&#8221;) $merlin.Show() List animations: $merlin.AnimationNames &nbsp; Activate animation: $merlin.Play(&#8220;Congratulate&#8221;) &nbsp; Have Merlin tell when process was started: Get-Process | select -First 10 | foreach {$merlin.Speak($_.ProcessName + &#8221; was started &#8221; + $_.StartTime) | out-null; Start-Sleep 5 } &nbsp; Microsoft Agent is being &hellip; <a href=\"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fun with Microsoft Agent and PowerShell<\/span><\/a><!-- AddThis Share Buttons generic via filter on wp_trim_excerpt --><br \/>\n<!-- AddThis Related Posts generic via filter on wp_trim_excerpt --><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[32],"tags":[53,52,179,178],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.6.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fun with Microsoft Agent and PowerShell \u00bb PowerShell \u00bb SYN, SYN-ACK, ACK<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Henrik Damgaard\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/\",\"url\":\"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/\",\"name\":\"Fun with Microsoft Agent and PowerShell \u00bb PowerShell \u00bb SYN, SYN-ACK, ACK\",\"isPartOf\":{\"@id\":\"https:\/\/henrik.familiendamgaard.dk\/blog\/#website\"},\"datePublished\":\"2011-09-01T20:34:52+00:00\",\"dateModified\":\"2011-09-02T09:33:06+00:00\",\"author\":{\"@id\":\"https:\/\/henrik.familiendamgaard.dk\/blog\/#\/schema\/person\/df8ef26ea249218b5e03146bc0b33945\"},\"breadcrumb\":{\"@id\":\"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Fun with Microsoft Agent and PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/henrik.familiendamgaard.dk\/blog\/#website\",\"url\":\"https:\/\/henrik.familiendamgaard.dk\/blog\/\",\"name\":\"SYN, SYN-ACK, ACK\",\"description\":\"Henrik Damgaard\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/henrik.familiendamgaard.dk\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/henrik.familiendamgaard.dk\/blog\/#\/schema\/person\/df8ef26ea249218b5e03146bc0b33945\",\"name\":\"Henrik Damgaard\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/henrik.familiendamgaard.dk\/blog\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-content\/uploads\/2014\/04\/henrik.familiendamgaard.dk-henrik.jpg\",\"contentUrl\":\"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-content\/uploads\/2014\/04\/henrik.familiendamgaard.dk-henrik.jpg\",\"caption\":\"Henrik Damgaard\"},\"description\":\"Hi I\u2019m Henrik and I write this blog based on useful topics I find interesting \u2013 mostly covering some of my technical interests : System Center Operations Manager (SCOM), BizTalk, Windows Server, PowerShell, SQL server, Internet Information Services, PHP and .NET I am currently holding a position as System Administrator with focus on Microsoft server products.\",\"sameAs\":[\"https:\/\/www.google.com\/accounts\/o8\/id?id=AItOawm9nhUQo8VH_qbGDFWjC6z6lwgwvf8pZWQ\",\"http:\/\/www.facebook.com\/nrjizer\",\"http:\/\/linkedin.com\/in\/henrikdamgaard\",\"https:\/\/twitter.com\/http:\/\/twitter.com\/nrjizer\"],\"url\":\"http:\/\/henrik.familiendamgaard.dk\/blog\/author\/henrik\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fun with Microsoft Agent and PowerShell \u00bb PowerShell \u00bb SYN, SYN-ACK, ACK","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/","twitter_misc":{"Written by":"Henrik Damgaard"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/","url":"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/","name":"Fun with Microsoft Agent and PowerShell \u00bb PowerShell \u00bb SYN, SYN-ACK, ACK","isPartOf":{"@id":"https:\/\/henrik.familiendamgaard.dk\/blog\/#website"},"datePublished":"2011-09-01T20:34:52+00:00","dateModified":"2011-09-02T09:33:06+00:00","author":{"@id":"https:\/\/henrik.familiendamgaard.dk\/blog\/#\/schema\/person\/df8ef26ea249218b5e03146bc0b33945"},"breadcrumb":{"@id":"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/henrik.familiendamgaard.dk\/blog\/2011\/09\/01\/fun-with-microsoft-agent-and-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Fun with Microsoft Agent and PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/henrik.familiendamgaard.dk\/blog\/#website","url":"https:\/\/henrik.familiendamgaard.dk\/blog\/","name":"SYN, SYN-ACK, ACK","description":"Henrik Damgaard","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/henrik.familiendamgaard.dk\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/henrik.familiendamgaard.dk\/blog\/#\/schema\/person\/df8ef26ea249218b5e03146bc0b33945","name":"Henrik Damgaard","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/henrik.familiendamgaard.dk\/blog\/#\/schema\/person\/image\/","url":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-content\/uploads\/2014\/04\/henrik.familiendamgaard.dk-henrik.jpg","contentUrl":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-content\/uploads\/2014\/04\/henrik.familiendamgaard.dk-henrik.jpg","caption":"Henrik Damgaard"},"description":"Hi I\u2019m Henrik and I write this blog based on useful topics I find interesting \u2013 mostly covering some of my technical interests : System Center Operations Manager (SCOM), BizTalk, Windows Server, PowerShell, SQL server, Internet Information Services, PHP and .NET I am currently holding a position as System Administrator with focus on Microsoft server products.","sameAs":["https:\/\/www.google.com\/accounts\/o8\/id?id=AItOawm9nhUQo8VH_qbGDFWjC6z6lwgwvf8pZWQ","http:\/\/www.facebook.com\/nrjizer","http:\/\/linkedin.com\/in\/henrikdamgaard","https:\/\/twitter.com\/http:\/\/twitter.com\/nrjizer"],"url":"http:\/\/henrik.familiendamgaard.dk\/blog\/author\/henrik\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/posts\/194"}],"collection":[{"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":2,"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":196,"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/posts\/194\/revisions\/196"}],"wp:attachment":[{"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/henrik.familiendamgaard.dk\/blog\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}