{"id":348,"date":"2006-12-06T04:00:00","date_gmt":"2006-12-06T12:00:00","guid":{"rendered":"http:\/\/testblog.sapien.com\/index.php\/2006\/12\/06\/tip-cli-to-powershell\/"},"modified":"2006-12-06T04:00:00","modified_gmt":"2006-12-06T12:00:00","slug":"tip-cli-to-powershell","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/","title":{"rendered":"Tip: CLI to PowerShell"},"content":{"rendered":"<p>If you have PowerShell installed (and if you don&#8217;t what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that&#8217;s not the only way.&nbsp; If you&#8217;re like me and always have a command prompt window open, you can easily launch PowerShell simply by running the command: powershell.<\/p>\n<p>That&#8217;s great but not good enough for me.&nbsp; I want visual cues that I now have a PowerShell session open.<\/p>\n<p>I can achieve this by setting the command prompt window&#8217;s color and title by using the COLOR and TITLE commands. I can make the changes and start PowerShell with a single command which I&#8217;ve put in a batch file I call posh.bat.<\/p>\n<p><span style=\"font-family: Courier New,Courier,mono;\">@echo off<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">title Microsoft Windows Powershell &amp;&amp; color 9f &amp;&amp; powershell -nologo &amp; color &amp;&amp; <\/span><span style=\"font-family: Courier New,Courier,mono;\">title Command Prompt<\/span><\/p>\n<p>At a command prompt, when I run posh.bat the windows changes to a blue background with white text and the title bar changes to Microsoft Windows Powershell. You&#8217;ve probably noticed the Color and Title commands at the end of the expression.&nbsp; When I&#8217;m finished with PowerShell and type exit, these commands are run and returns my command prompt to its original state.<\/p>\n<p>Now you can save a few clicks and keystrokes and quickly get to work in PowerShell.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have PowerShell installed (and if you don&#8217;t what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that&#8217;s not the only way.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[18,2,25],"tags":[],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-batchcmd","category-general","category-windows-powershell"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"If you have PowerShell installed (and if you don&#039;t what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that&#039;s not the only way.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Jeffery Hicks\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DEV SAPIEN Blog - Tools for IT Success\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Tip: CLI to PowerShell - DEV SAPIEN Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"If you have PowerShell installed (and if you don&#039;t what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that&#039;s not the only way.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2006-12-06T12:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2006-12-06T12:00:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Tip: CLI to PowerShell - DEV SAPIEN Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"If you have PowerShell installed (and if you don&#039;t what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that&#039;s not the only way.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/#blogposting\",\"name\":\"Tip: CLI to PowerShell - DEV SAPIEN Blog\",\"headline\":\"Tip: CLI to PowerShell\",\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"},\"datePublished\":\"2006-12-06T04:00:00-08:00\",\"dateModified\":\"2006-12-06T04:00:00-08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/#webpage\"},\"articleSection\":\"Batch\\\/CMD, General, Windows PowerShell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/#listItem\",\"name\":\"Tip: CLI to PowerShell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/#listItem\",\"position\":3,\"name\":\"Tip: CLI to PowerShell\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"name\":\"General\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/\",\"name\":\"Jeffery Hicks\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/#webpage\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/\",\"name\":\"Tip: CLI to PowerShell - DEV SAPIEN Blog\",\"description\":\"If you have PowerShell installed (and if you don't what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that's not the only way.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/12\\\/06\\\/tip-cli-to-powershell\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"datePublished\":\"2006-12-06T04:00:00-08:00\",\"dateModified\":\"2006-12-06T04:00:00-08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Tip: CLI to PowerShell - DEV SAPIEN Blog","description":"If you have PowerShell installed (and if you don't what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that's not the only way.","canonical_url":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/#blogposting","name":"Tip: CLI to PowerShell - DEV SAPIEN Blog","headline":"Tip: CLI to PowerShell","author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"},"datePublished":"2006-12-06T04:00:00-08:00","dateModified":"2006-12-06T04:00:00-08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/#webpage"},"isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/#webpage"},"articleSection":"Batch\/CMD, General, Windows PowerShell"},{"@type":"BreadcrumbList","@id":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/dev.sapien.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","position":2,"name":"General","item":"https:\/\/dev.sapien.com\/blog\/topics\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/#listItem","name":"Tip: CLI to PowerShell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/#listItem","position":3,"name":"Tip: CLI to PowerShell","previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","name":"General"}}]},{"@type":"Organization","@id":"https:\/\/dev.sapien.com\/blog\/#organization","name":"DEV SAPIEN Blog","description":"Tools for IT Success","url":"https:\/\/dev.sapien.com\/blog\/"},{"@type":"Person","@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author","url":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/","name":"Jeffery Hicks"},{"@type":"WebPage","@id":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/#webpage","url":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/","name":"Tip: CLI to PowerShell - DEV SAPIEN Blog","description":"If you have PowerShell installed (and if you don't what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that's not the only way.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/#breadcrumblist"},"author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"creator":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"datePublished":"2006-12-06T04:00:00-08:00","dateModified":"2006-12-06T04:00:00-08:00"},{"@type":"WebSite","@id":"https:\/\/dev.sapien.com\/blog\/#website","url":"https:\/\/dev.sapien.com\/blog\/","name":"DEV SAPIEN Blog","description":"Tools for IT Success","inLanguage":"en-US","publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DEV SAPIEN Blog - Tools for IT Success","og:type":"article","og:title":"Tip: CLI to PowerShell - DEV SAPIEN Blog","og:description":"If you have PowerShell installed (and if you don't what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that's not the only way.","og:url":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/","article:published_time":"2006-12-06T12:00:00+00:00","article:modified_time":"2006-12-06T12:00:00+00:00","twitter:card":"summary_large_image","twitter:title":"Tip: CLI to PowerShell - DEV SAPIEN Blog","twitter:description":"If you have PowerShell installed (and if you don't what are you waiting for?) you may be used to starting PowerShell from the Start Menu shortcut. But that's not the only way."},"aioseo_meta_data":{"post_id":"348","title":null,"description":null,"keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-08-28 14:22:41","updated":"2026-08-28 14:22:41"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\/topics\/general\/\" title=\"General\">General<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTip: CLI to PowerShell\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/dev.sapien.com\/blog"},{"label":"General","link":"https:\/\/dev.sapien.com\/blog\/topics\/general\/"},{"label":"Tip: CLI to PowerShell","link":"https:\/\/dev.sapien.com\/blog\/2006\/12\/06\/tip-cli-to-powershell\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":0,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}