{"id":355,"date":"2012-09-25T11:58:06","date_gmt":"2012-09-25T18:58:06","guid":{"rendered":"https:\/\/mmman.itgroove.net\/?p=355"},"modified":"2023-02-24T21:47:00","modified_gmt":"2023-02-24T21:47:00","slug":"fun-with-powershell-balloon-tips","status":"publish","type":"post","link":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/","title":{"rendered":"Fun with PowerShell \u2013 Balloon Tips"},"content":{"rendered":"<p>This is a tip from PowerShell.com.&#160; I\u2019ve slightly changed the text and title to make the boss man smile every time he reads this post.&#160; <img decoding=\"async\" style=\"border-bottom-style: none;border-left-style: none;border-top-style: none;border-right-style: none\" class=\"wlEmoticon wlEmoticon-smile\" alt=\"Smile\" src=\"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png\" \/><\/p>\n<h3>Displaying Balloon Tip<\/h3>\n<p>Let&#8217;s assume your script wants to share status information via a balloon message in the system tray area. Here is a sample:<\/p>\n<p>[sourcecode language=&#8221;powershell&#8221;]<br \/>\n[system.Reflection.Assembly]::LoadWithPartialName(&#8216;System.Windows.Forms&#8217;) | Out-Null<br \/>\n$balloon = New-Object System.Windows.Forms.NotifyIcon<br \/>\n$path = Get-Process -id $pid | Select-Object -ExpandProperty Path<br \/>\n$icon = [System.Drawing.Icon]::ExtractAssociatedIcon($path)<br \/>\n$balloon.Icon = $icon<br \/>\n$balloon.BalloonTipIcon = &#8216;Info&#8217;<br \/>\n$balloon.BalloonTipTitle = &#8216;itgroove Kicks Ass!&#8217;<br \/>\n$balloon.BalloonTipText = &#8216;itgroove. To have fun with technology. Doing IT with style.&#8217;<br \/>\n$balloon.Visible = $true<br \/>\n$balloon.ShowBalloonTip(10000)<br \/>\n[\/sourcecode]<\/p>\n<p>Note that the code uses the icon of your PowerShell application inside the tray area so the user can associate the message with the application that produced it.<\/p>\n<p><a href=\"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/clip_image002.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px;padding-top: 0px\" title=\"clip_image002\" border=\"0\" alt=\"clip_image002\" src=\"http:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/clip_image002_thumb.jpg\" width=\"349\" height=\"112\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a tip from PowerShell.com.&#160; I\u2019ve slightly changed the text and title to make the boss man smile every time he reads this post.&#160; Displaying Balloon Tip Let&#8217;s assume your script wants to share status information via a balloon message in the system tray area. Here is a sample: [sourcecode language=&#8221;powershell&#8221;] [system.Reflection.Assembly]::LoadWithPartialName(&#8216;System.Windows.Forms&#8217;) | Out-Null &hellip; <a href=\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/\"><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[31],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fun with PowerShell \u2013 Balloon Tips - Archive<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fun with PowerShell \u2013 Balloon Tips - Archive\" \/>\n<meta property=\"og:description\" content=\"This is a tip from PowerShell.com.&#160; I\u2019ve slightly changed the text and title to make the boss man smile every time he reads this post.&#160; Displaying Balloon Tip Let&#8217;s assume your script wants to share status information via a balloon message in the system tray area. Here is a sample: [sourcecode language=&#8221;powershell&#8221;] [system.Reflection.Assembly]::LoadWithPartialName(&#8216;System.Windows.Forms&#8217;) | Out-Null &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/\" \/>\n<meta property=\"og:site_name\" content=\"Archive\" \/>\n<meta property=\"article:published_time\" content=\"2012-09-25T18:58:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T21:47:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png\" \/>\n<meta name=\"author\" content=\"Colin Phillips (Alumni)\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Colin Phillips (Alumni)\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/\",\"url\":\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/\",\"name\":\"Fun with PowerShell \u2013 Balloon Tips - Archive\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png\",\"datePublished\":\"2012-09-25T18:58:06+00:00\",\"dateModified\":\"2023-02-24T21:47:00+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\"},\"breadcrumb\":{\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#primaryimage\",\"url\":\"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png\",\"contentUrl\":\"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog Archive\",\"item\":\"https:\/\/regroove.ca\/archive\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fun with PowerShell \u2013 Balloon Tips\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/archive\/#website\",\"url\":\"https:\/\/regroove.ca\/archive\/\",\"name\":\"Archive\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/archive\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\",\"name\":\"Colin Phillips (Alumni)\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g\",\"caption\":\"Colin Phillips (Alumni)\"},\"url\":\"https:\/\/regroove.ca\/archive\/author\/cphillips\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fun with PowerShell \u2013 Balloon Tips - Archive","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":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/","og_locale":"en_US","og_type":"article","og_title":"Fun with PowerShell \u2013 Balloon Tips - Archive","og_description":"This is a tip from PowerShell.com.&#160; I\u2019ve slightly changed the text and title to make the boss man smile every time he reads this post.&#160; Displaying Balloon Tip Let&#8217;s assume your script wants to share status information via a balloon message in the system tray area. Here is a sample: [sourcecode language=&#8221;powershell&#8221;] [system.Reflection.Assembly]::LoadWithPartialName(&#8216;System.Windows.Forms&#8217;) | Out-Null &hellip;","og_url":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/","og_site_name":"Archive","article_published_time":"2012-09-25T18:58:06+00:00","article_modified_time":"2023-02-24T21:47:00+00:00","og_image":[{"url":"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png"}],"author":"Colin Phillips (Alumni)","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Colin Phillips (Alumni)","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/","url":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/","name":"Fun with PowerShell \u2013 Balloon Tips - Archive","isPartOf":{"@id":"https:\/\/regroove.ca\/archive\/#website"},"primaryImageOfPage":{"@id":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#primaryimage"},"image":{"@id":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#primaryimage"},"thumbnailUrl":"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png","datePublished":"2012-09-25T18:58:06+00:00","dateModified":"2023-02-24T21:47:00+00:00","author":{"@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b"},"breadcrumb":{"@id":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#primaryimage","url":"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png","contentUrl":"https:\/\/mmman.itgroove.net\/wp-content\/uploads\/mmman\/2012\/09\/wlEmoticon-smile.png"},{"@type":"BreadcrumbList","@id":"https:\/\/regroove.ca\/archive\/2012\/09\/25\/fun-with-powershell-balloon-tips\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Archive","item":"https:\/\/regroove.ca\/archive\/"},{"@type":"ListItem","position":2,"name":"Fun with PowerShell \u2013 Balloon Tips"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/archive\/#website","url":"https:\/\/regroove.ca\/archive\/","name":"Archive","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/archive\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b","name":"Colin Phillips (Alumni)","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g","caption":"Colin Phillips (Alumni)"},"url":"https:\/\/regroove.ca\/archive\/author\/cphillips\/"}]}},"_links":{"self":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/355"}],"collection":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":1,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/355\/revisions"}],"predecessor-version":[{"id":1979,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/355\/revisions\/1979"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/categories?post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/tags?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}