{"id":634,"date":"2010-05-03T09:45:43","date_gmt":"2010-05-03T14:45:43","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/2010\/05\/content-redirection\/"},"modified":"2013-07-02T08:14:45","modified_gmt":"2013-07-02T12:14:45","slug":"content-redirection","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/","title":{"rendered":"Content Redirection"},"content":{"rendered":"<p>Here\u2019s another item I see in some submisstions of the 2010 Scripting Games that I felt I should address: the use of legacy console redirection. While technically not illegal or wrong, an example like this demonstrates (at least in my opinion) that the scripter hasn\u2019t fully adopted the PowerShell paradigm.<\/p>\n<\/p>\n<pre class=\"PowerShellColorizedScript\"><span style=\"color: #ff4500\">$computers<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #0000ff\">get-content<\/span> <span style=\"color: #8b0000\">&quot;computers.txt&quot;<\/span>            \n<span style=\"color: #ff4500\">$data<\/span><span style=\"color: #a9a9a9\">=<\/span><span style=\"color: #00008b\">foreach<\/span> <span style=\"color: #000000\">(<\/span><span style=\"color: #ff4500\">$computer<\/span> <span style=\"color: #00008b\">in<\/span> <span style=\"color: #ff4500\">$computers<\/span><span style=\"color: #000000\">)<\/span> <span style=\"color: #000000\">{<\/span>            \n <span style=\"color: #0000ff\">get-service<\/span> <span style=\"color: #8a2be2\">spooler<\/span> <span style=\"color: #000080\">-ComputerName<\/span> <span style=\"color: #ff4500\">$computer<\/span> <span style=\"color: #a9a9a9\">|<\/span>            \n <span style=\"color: #0000ff\">Select<\/span> <span style=\"color: #8a2be2\">Machinename<\/span><span style=\"color: #a9a9a9\">,<\/span><span style=\"color: #8a2be2\">DisplayName<\/span><span style=\"color: #a9a9a9\">,<\/span><span style=\"color: #8a2be2\">Status<\/span>             \n <span style=\"color: #000000\">}<\/span>            \n <span style=\"color: #ff4500\">$data<\/span> <span style=\"color: #a9a9a9\">&gt;<\/span> <span style=\"color: #8a2be2\">$env:temp\\svclog.txt<\/span><\/pre>\n<\/p>\n<p>While this will work and create a text file, it is not fully written in the PowerShell spirit. At the very least, you should use the cmdlets <a title=\"get online help\" href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=113363\" target=\"_blank\">Out-File<\/a>, <a title=\"get online help\" href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=113278\" target=\"_blank\">Add-Content<\/a> or <a title=\"get online help for this cmdlet\" href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=113392\" target=\"_blank\">Set-Content<\/a> in place of the legacy console redirection operators, &gt; and &gt;&gt;.&#160;&#160; I\u2019ll admit that 99 times out of 100 you\u2019ll have no issues with the resulting text file.&#160; However, there is the potential for encoding issues. The cmdlets are better designed to handle encoding as well as a few other PowerShell bells and whistles like \u2013noclobber.<\/p>\n<p>Another reason I suggest using cmdlets is that the &gt; and &gt;&gt; operators are actually part of the underlying command session that PowerShell.exe is running on. It\u2019s conceivable that some future version of PowerShell or some PowerShell hosted application won\u2019t support these operators which means your script will fail and need revision. Stick with cmdlets from the beginning to protect your scripting investment.<\/p>\n<p>Here\u2019s a better PowerShell implementation that uses cmdlets and takes better advantage of the pipeline.<\/p>\n<\/p>\n<pre class=\"PowerShellColorizedScript\"><span style=\"color: #0000ff\">get-content<\/span> <span style=\"color: #000080\">-path<\/span> <span style=\"color: #8b0000\">&quot;computers.txt&quot;<\/span> <span style=\"color: #a9a9a9\">|<\/span> <span style=\"color: #0000ff\">foreach<\/span> <span style=\"color: #000000\">{<\/span>             \n  <span style=\"color: #0000ff\">get-service<\/span> <span style=\"color: #000080\">-Name<\/span> <span style=\"color: #8a2be2\">spooler<\/span> <span style=\"color: #000080\">-ComputerName<\/span> <span style=\"color: #ff4500\">$_<\/span><span style=\"color: #000000\">}<\/span> <span style=\"color: #a9a9a9\">|<\/span>            \n  <span style=\"color: #0000ff\">Select<\/span> <span style=\"color: #8a2be2\">MachineName<\/span><span style=\"color: #a9a9a9\">,<\/span><span style=\"color: #8a2be2\">DisplayName<\/span><span style=\"color: #a9a9a9\">,<\/span><span style=\"color: #8a2be2\">Status<\/span> <span style=\"color: #a9a9a9\">|<\/span>            \n  <span style=\"color: #0000ff\">Tee-Object<\/span> <span style=\"color: #000080\">-FilePath<\/span> <span style=\"color: #8a2be2\">$env:temp\\svclog.txt<\/span><\/pre>\n<\/p>\n<p>In this example I\u2019m using <a title=\"get online help for this cmdlet\" href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=113417\" target=\"_blank\">Tee-Object<\/a> which not only displays the properties in the console but also redirects to the text file. I\u2019m sure you\u2019ll agree this is better than using &gt; and &gt;&gt;.&#160; Or am I making too much out of this?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s another item I see in some submisstions of the 2010 Scripting Games that I felt I should address: the use of legacy console redirection. While technically not illegal or wrong, an example like this demonstrates (at least in my opinion) that the scripter hasn\u2019t fully adopted the PowerShell paradigm. $computers=get-content &quot;computers.txt&quot; $data=foreach ($computer in&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[60,75],"tags":[77,176,123,534,540],"class_list":["post-634","post","type-post","status-publish","format-standard","hentry","category-best-practices","category-powershell-v2-0","tag-cmdlets","tag-console","tag-files","tag-powershell","tag-scripting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Content Redirection &#8226; The Lonely Administrator<\/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:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Content Redirection &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"Here\u2019s another item I see in some submisstions of the 2010 Scripting Games that I felt I should address: the use of legacy console redirection. While technically not illegal or wrong, an example like this demonstrates (at least in my opinion) that the scripter hasn\u2019t fully adopted the PowerShell paradigm. $computers=get-content &quot;computers.txt&quot; $data=foreach ($computer in...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2010-05-03T14:45:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-07-02T12:14:45+00:00\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Content Redirection\",\"datePublished\":\"2010-05-03T14:45:43+00:00\",\"dateModified\":\"2013-07-02T12:14:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/\"},\"wordCount\":271,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"keywords\":[\"Cmdlets\",\"console\",\"Files\",\"PowerShell\",\"Scripting\"],\"articleSection\":[\"Best Practices\",\"PowerShell v2.0\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/\",\"name\":\"Content Redirection &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2010-05-03T14:45:43+00:00\",\"dateModified\":\"2013-07-02T12:14:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/best-practices\\\/634\\\/content-redirection\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Best Practices\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/best-practices\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Content Redirection\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Content Redirection &#8226; The Lonely Administrator","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:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/","og_locale":"en_US","og_type":"article","og_title":"Content Redirection &#8226; The Lonely Administrator","og_description":"Here\u2019s another item I see in some submisstions of the 2010 Scripting Games that I felt I should address: the use of legacy console redirection. While technically not illegal or wrong, an example like this demonstrates (at least in my opinion) that the scripter hasn\u2019t fully adopted the PowerShell paradigm. $computers=get-content &quot;computers.txt&quot; $data=foreach ($computer in...","og_url":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/","og_site_name":"The Lonely Administrator","article_published_time":"2010-05-03T14:45:43+00:00","article_modified_time":"2013-07-02T12:14:45+00:00","author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Content Redirection","datePublished":"2010-05-03T14:45:43+00:00","dateModified":"2013-07-02T12:14:45+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/"},"wordCount":271,"commentCount":1,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"keywords":["Cmdlets","console","Files","PowerShell","Scripting"],"articleSection":["Best Practices","PowerShell v2.0"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/","url":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/","name":"Content Redirection &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"datePublished":"2010-05-03T14:45:43+00:00","dateModified":"2013-07-02T12:14:45+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/best-practices\/634\/content-redirection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Best Practices","item":"https:\/\/jdhitsolutions.com\/blog\/category\/best-practices\/"},{"@type":"ListItem","position":2,"name":"Content Redirection"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":4985,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4985\/converting-text-to-html-revised\/","url_meta":{"origin":634,"position":0},"title":"Converting Text to HTML Revised","author":"Jeffery Hicks","date":"May 9, 2016","format":false,"excerpt":"A few years ago I published a PowerShell function to convert text files into HTML listings. I thought it would be handy to convert scripts to HTML documents with line numbering and some formatting. Turns out someone actually used it! He had some questions about the function which led me\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"convertto-htmllisting2","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/05\/convertto-htmllisting2_thumb.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/05\/convertto-htmllisting2_thumb.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2016\/05\/convertto-htmllisting2_thumb.png?resize=525%2C300 1.5x"},"classes":[]},{"id":169,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/169\/redirection-madness\/","url_meta":{"origin":634,"position":1},"title":"Redirection Madness","author":"Jeffery Hicks","date":"August 4, 2009","format":false,"excerpt":"As part of my blog migration from blogspot.com to here, I migrated all previous posts and comments and setup redirection on the old site. Of course nothing is foolproof so if you were searching for content on the old site and can't find it here, please let me know and\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":558,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/558\/promoting-scripting-and-powershell\/","url_meta":{"origin":634,"position":2},"title":"Promoting Scripting and PowerShell","author":"Jeffery Hicks","date":"January 21, 2010","format":false,"excerpt":"Last week I was interviewed on the Mind of Root podcast about what administrators can do to promote PowerShell and automation in their environments. The show is now available for streaming or download. I still think your best approach is to gently let everyone know that it's not a matter\u2026","rel":"","context":"In &quot;Exchange&quot;","block_context":{"text":"Exchange","link":"https:\/\/jdhitsolutions.com\/blog\/category\/exchange\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":541,"url":"https:\/\/jdhitsolutions.com\/blog\/training\/541\/promoting-powershell\/","url_meta":{"origin":634,"position":3},"title":"Promoting PowerShell","author":"Jeffery Hicks","date":"January 6, 2010","format":false,"excerpt":"This question comes up quite often: \"How can I encourage adoption of Windows PowerShell in my organization?\" I periodically poll people about their adoption plans and what sort of things are standing in the way. Most of the obstacles in my opinion can be cleared with experience, exposure and education.\u2026","rel":"","context":"In &quot;CommandLine&quot;","block_context":{"text":"CommandLine","link":"https:\/\/jdhitsolutions.com\/blog\/category\/commandline\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2044,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/2044\/maximizing-the-powershell-console-title-bar\/","url_meta":{"origin":634,"position":4},"title":"Maximizing the PowerShell Console Title Bar","author":"Jeffery Hicks","date":"January 31, 2012","format":false,"excerpt":"A few days ago Boe Prox posted some very nifty PowerShell modules for using the title bar as a ticker for RSS feeds like the weather. I thought this was an awesome idea and an easy way to take advantage of what would otherwise be unused screen space. I was\u2026","rel":"","context":"In &quot;PowerShell v2.0&quot;","block_context":{"text":"PowerShell v2.0","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell-v2-0\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2012\/01\/console-title-sysstat-300x85.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":50,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/50\/background-jobs-in-powershell\/","url_meta":{"origin":634,"position":5},"title":"Background jobs in PowerShell","author":"Jeffery Hicks","date":"August 31, 2006","format":false,"excerpt":"The *nix world has always had the ability to run jobs in the background. Now it's possible to do that in PowerShell. There is a terrific post on this at:http:\/\/jtruher.spaces.live.com\/Blog\/cns!7143DA6E51A2628D!130.entryYou'll need to copy some scripts and functions from the entry and save them locally. You also might need to tweak\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=634"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/634\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}