{"id":2597,"date":"2019-08-31T09:36:47","date_gmt":"2019-08-31T00:36:47","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2597"},"modified":"2019-08-31T10:22:04","modified_gmt":"2019-08-31T01:22:04","slug":"powershell-%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%ac%e3%83%83%e3%83%88%e3%81%ae%e3%82%a8%e3%82%a4%e3%83%aa%e3%82%a2%e3%82%b9%ef%bc%88%e7%9f%ad%e7%b8%ae%e5%90%8d%ef%bc%89%e3%82%92%e5%8f%96","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2597","title":{"rendered":"[PowerShell] \u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\uff08\u77ed\u7e2e\u540d\uff09\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h3>1. \u30a8\u30a4\u30ea\u30a2\u30b9\u4e00\u89a7\u53d6\u5f97<\/h3>\n<pre class=\"lang:ps decode:true \" >PS &gt; Get-Alias\r\n\r\nCommandType     Name                                               Version    Source\r\n-----------     ----                                               -------    ------\r\nAlias           % -&gt; ForEach-Object\r\nAlias           ? -&gt; Where-Object\r\nAlias           ac -&gt; Add-Content\r\nAlias           asnp -&gt; Add-PSSnapin\r\nAlias           cat -&gt; Get-Content\r\n...<\/pre>\n<p>&nbsp;<\/p>\n<h3>2. \u3042\u308b\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306b\u7d10\u3065\u3044\u305f\u30a8\u30a4\u30ea\u30a2\u30b9\u306e\u53d6\u5f97<\/h3>\n<pre class=\"lang:ps decode:true \" >PS &gt; Get-Alias | Where-Object { $_.Definition -eq \"Get-ChildItem\" }<\/pre>\n<pre class=\"lang:ps decode:true \" >PS &gt; gal | ? { $_.Definition -eq \"Get-ChildItem\" }\r\n\r\nCommandType     Name                                               Version    Source\r\n-----------     ----                                               -------    ------\r\nAlias           dir -&gt; Get-ChildItem\r\nAlias           gci -&gt; Get-ChildItem\r\nAlias           ls -&gt; Get-ChildItem<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. \u30a8\u30a4\u30ea\u30a2\u30b9\u4e00\u89a7\u53d6\u5f97 PS &gt; Get-Alias CommandType Name Version Source &#8212;&#8212;&#8212;&#8211; &#8212;- &#8212;&#8212;- &#8212;&#8212; Alias % -&gt; F [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[72],"class_list":["post-2597","post","type-post","status-publish","format-standard","hentry","category-memo","tag-powershell"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2597"}],"version-history":[{"count":2,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2597\/revisions"}],"predecessor-version":[{"id":2599,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2597\/revisions\/2599"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}