{"id":3930,"date":"2023-08-14T02:51:47","date_gmt":"2023-08-14T02:51:47","guid":{"rendered":"https:\/\/wiki.thomasandsofia.com\/?p=3930"},"modified":"2023-08-15T11:15:57","modified_gmt":"2023-08-15T11:15:57","slug":"into-to-powershell-3-getting-help-and-finding-commands","status":"publish","type":"post","link":"https:\/\/wiki.thomasandsofia.com\/?p=3930","title":{"rendered":"Into to PowerShell &#8211; 3 Getting Help and Finding Commands"},"content":{"rendered":"<h2>Cmdlets<\/h2>\n<p>Verb-Noun (Action)-(Thing)<\/p>\n<ul>\n<li>Get, Add, Export, Import, Start\n<ul>\n<li>`get-verb`<\/li>\n<li>Verbs are subdivided into Groups<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Examining the Help System<\/h2>\n<ul>\n<li>-examples<\/li>\n<li>-detailed: Shows examples, but also includes additional details about how to use the command<\/li>\n<li>-full: Detailed, but includes additional parameters<\/li>\n<li>-online: Opens a browser to the online help<\/li>\n<\/ul>\n<pre>Get-Help Get-Service -Examples<\/pre>\n<h2>Combining Commands using the Pipe &#8216;|&#8217; Operator<\/h2>\n<ul>\n<li>takes output of first command and makes it the input (source) for the next command<\/li>\n<\/ul>\n<h2>Find Help on a specific Command<\/h2>\n<ol>\n<li>get-command<\/li>\n<li>Scroll to the command you want to see and click (place the cursor at the front of that command<\/li>\n<li>Press &lt;F1&gt;\n<ol>\n<li>This becomes <code>Get-Command '&lt;command&gt;' -ShowWindow<\/code><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h3>Getting Help using Wildcards<\/h3>\n<ul>\n<li>&#8216;*&#8217; = 1 or more characters<\/li>\n<li>`get-help *service*\n<ul>\n<li>`get-help start-service -examples`<\/li>\n<\/ul>\n<\/li>\n<li>`get-help *log*`\n<ul>\n<li>`get-help clear-eventlog -examples`<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Q1 How to get dependent services of a running service<\/p>\n<ol>\n<li>get-service<\/li>\n<li><\/li>\n<\/ol>\n<p>get-process<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cmdlets Verb-Noun (Action)-(Thing) Get, Add, Export, Import, Start `get-verb` Verbs are subdivided into Groups Examining the Help System -examples -detailed: Shows examples, but also includes additional details about how to use the command -full: Detailed, but includes additional parameters -online: Opens a browser to the online help Get-Help Get-Service -Examples Combining Commands using the Pipe ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.thomasandsofia.com\/?p=3930\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3930","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/3930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3930"}],"version-history":[{"count":3,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/3930\/revisions"}],"predecessor-version":[{"id":3933,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=\/wp\/v2\/posts\/3930\/revisions\/3933"}],"wp:attachment":[{"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.thomasandsofia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}