{"id":74921,"date":"2015-02-11T18:49:39","date_gmt":"2015-02-11T18:49:39","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/?p=74921"},"modified":"2019-02-18T10:30:39","modified_gmt":"2019-02-18T17:30:39","slug":"dias-test-post","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/dias-test-post\/","title":{"rendered":"Dia&#039;s Test Post"},"content":{"rendered":"<p><strong>Summary<\/strong>: Guest blogger, Tim Warner, talks about using Windows PowerShell conceptual Help.\nMicrosoft Scripting Guy, Ed Wilson, is here. Welcome back Timothy Warner as our guest blogger today.\nLet\u2019s say you need to identify and extract all email addresses from a huge text file. To solve the issue, you decide to employ the <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/hh849903.aspx\" target=\"_blank\">Select-String<\/a> cmdlet with <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/hh847880.aspx\" target=\"_blank\">regular expression<\/a> (regex) syntax.\nLike the good PowerSheller you are, you update your local Help and examine the full <strong>Select-String<\/strong> documentation in a separate window:<\/p>\n<p style=\"padding-left: 30px\">Get-Help \u2013Name Select-String \u2013ShowWindow<\/p>\n<p>\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/2.png\"><img decoding=\"async\" class=\"  alignright wp-image-74931 \" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/2.png\" alt=\"Image of command\" width=\"505\" height=\"262\" \/><\/a>\nNow browse to the bottom of the file to the <strong>Related Links<\/strong> section. What do you see?<\/p>\n<h4><\/h4>\n<h4>This:<\/h4>\n<p style=\"padding-left: 30px\">RelatedLinks<\/p>\n<p style=\"padding-left: 30px\">\u00a0\u00a0\u00a0 Online Version: http:\/\/go.microsoft.com\/fwlink\/p\/?linkid=294008<\/p>\n<p style=\"padding-left: 30px\">\u00a0\u00a0\u00a0 about_Comparison_Operators<\/p>\n<p style=\"padding-left: 30px\">\u00a0\u00a0\u00a0 about_Regular_Expressions<\/p>\n<p>What the heck are these \u201cabout_\u201d entries? As a tech trainer, one of my great joys is seeing my students\u2019 eyes light up with new understanding. To that point, I\u2019ve taught so many IT pros who knew about <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/hh849696.aspx\">Get-Help<\/a> but had no idea about conceptual Help. Let\u2019s get enlightened, shall we?<\/p>\n<h2>About \u201cAbout\u201d Help<\/h2>\n<p>Whereas \u201cnormal\u201d PowerShell Help gives you syntax and usage explanations on a command-by-command basis, the PowerShell conceptual Help library focuses on the underlying, broader principles.<\/p>\n<p style=\"text-align: right\">\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/110.png\"><img decoding=\"async\" class=\" size-medium wp-image-75521 alignleft\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/110-300x53.png\" alt=\"1\" width=\"300\" height=\"53\" \/><\/a><\/p>\n<p>&nbsp;\nLet\u2019s start by generating a report of all conceptual Help. Don\u2019t forget to run <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/hh849720.aspx\">Update-Help<\/a> to make sure you have the latest and greatest documentation:<\/p>\n<p style=\"padding-left: 30px\">Get-Help -Name about_* | Select-Object -Property Name, Synopsis | Sort-Object -Property Name | Format-Table -AutoSize | Out-File -FilePath &#8216;~Desktopabout_help.txt&#8217;<\/p>\n<p>For instance, if you need to learn more about how to use the <strong>\u2013match<\/strong> comparison operator for use in regex parsing, you can read the conceptual Help first:\nHelp about_comparison_operators -ShowWindow<\/p>\n<h2>Get-Help vs. Help<\/h2>\n<p>While we\u2019re on the topic of PowerShell Help, some of you may have wondered why PowerShell includes two Help commands: <strong>Get-Help<\/strong> and <strong>Help.<\/strong>\n<a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/112.png\"><img decoding=\"async\" class=\" size-medium wp-image-74943 alignleft\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/112-300x287.png\" alt=\"11\" width=\"300\" height=\"287\" \/><\/a>\n&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\n&nbsp;\nYou probably noticed that running Help &lt;command&gt; in the PowerShell console shows you a screen full of information at a time. You have the following options:<\/p>\n<ul>\n<li>Press the <strong>Space<\/strong> bar to advance one screen at a time.<\/li>\n<li>Press ENTER to reveal one line at a time.<\/li>\n<li>Press CTRL+C to break out of Help.<\/li>\n<\/ul>\n<p><span style=\"color: #000000\">Try the following commands in a console session:<\/span><\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #000080\">Get-Help Get-ChildItem -Full\nHelp Get-ChildItem -Full<\/span><\/p>\n<p>Thanks for reading, and I hope you have a great day or night, wherever you are in the world.\n~Tim\nThanks for this \u201cHelp\u201dful information, Tim!\nI invite you to follow me on <a href=\"http:\/\/bit.ly\/scriptingguystwitter\">Twitter<\/a> and <a href=\"http:\/\/bit.ly\/scriptingguysfacebook\">Facebook<\/a>. If you have any questions, send email to me at <a href=\"mailto:scripter@microsoft.com\">scripter@microsoft.com<\/a>, or post your questions on the <a href=\"http:\/\/bit.ly\/scriptingforum\">Official Scripting Guys Forum<\/a>. See you tomorrow. Until then, peace.\n<strong>Ed Wilson, Microsoft Scripting Guy<\/strong>\n&nbsp;\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Guest blogger, Tim Warner, talks about using Windows PowerShell conceptual Help. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back Timothy Warner as our guest blogger today. Let\u2019s say you need to identify and extract all email addresses from a huge text file. To solve the issue, you decide to employ the Select-String cmdlet [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[568],"tags":[56,3,570,61,45],"class_list":["post-74921","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hey-scripting-guy","tag-guest-blogger","tag-scripting-guy","tag-timothy-warner","tag-weekend-scripter","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Guest blogger, Tim Warner, talks about using Windows PowerShell conceptual Help. Microsoft Scripting Guy, Ed Wilson, is here. Welcome back Timothy Warner as our guest blogger today. Let\u2019s say you need to identify and extract all email addresses from a huge text file. To solve the issue, you decide to employ the Select-String cmdlet [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/74921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=74921"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/74921\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=74921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=74921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=74921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}