{"id":120406,"date":"2024-04-05T10:30:04","date_gmt":"2024-04-05T01:30:04","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=120406"},"modified":"2024-04-05T10:30:04","modified_gmt":"2024-04-05T01:30:04","slug":"windows-powershell","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/windows-powershell\/","title":{"rendered":"Windows\u306ePowerShell\u306e\u5c65\u6b74\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/04\/s_20240404_112115.jpg\" alt=\"S 20240404 112115\" title=\"s_20240404_112115.jpg\" border=\"0\" width=\"1204\" height=\"752\" \/><\/p>\n<p>Windows 11\u3084Windows 10\u3067\u306f\u300cPowerShell\u300d\u3068\u547c\u3070\u308c\u308b\u591a\u6a5f\u80fd\u30b7\u30a7\u30eb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>PowerShell\u306f\u5f93\u6765\u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u4ee3\u308f\u308a\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u3001\u300c\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u300d\u3068\u547c\u3070\u308c\u308b\u5404\u7a2e\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u3001\u8907\u96d1\u306a\u547d\u4ee4\u3092\u5b9f\u884c\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u306f\u5b58\u5728\u3057\u306a\u3044\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u3001\u5c65\u6b74\u6a5f\u80fd\u3092\u3042\u3052\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002PowerShell\u3067\u5b9f\u884c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u306f\u81ea\u52d5\u7684\u306b\u4fdd\u5b58\u3055\u308c\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u307e\u305f\u3044\u3067\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>bash\u3084zsh\u306e\u5c65\u6b74\u6a5f\u80fd\u306e\u3088\u3046\u306b\u3001Ctrl+R\u3067\u5c65\u6b74\u3092\u691c\u7d22\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u3001\u975e\u5e38\u306b\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002\u4ee5\u4e0b\u3053\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>PowerShell\u306e\u5c65\u6b74\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b<\/h2>\n<p>PowerShell\u306e\u5c65\u6b74\u6a5f\u80fd\u306f\u6a19\u6e96\u72b6\u614b\u3067\u6709\u52b9\u3067\u3059\u3002\u5b9f\u884c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u306f\u4f55\u3082\u3057\u306a\u304f\u3066\u3082\u4fdd\u5b58\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/04\/s_20240404_113148.jpg\" alt=\"S 20240404 113148\" title=\"s_20240404_113148.jpg\" border=\"0\" width=\"1027\" height=\"641\" \/><\/p>\n<p>\u25b2\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u4e2d\u306b\u5b9f\u884c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u306e\u5c65\u6b74\u306f\u3001<code>history<\/code>\u3068\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2024\/04\/s_20240404_113337.jpg\" alt=\"S 20240404 113337\" title=\"s_20240404_113337.jpg\" border=\"0\" width=\"1027\" height=\"642\" \/><\/p>\n<p>\u25b2\u5c65\u6b74\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u307e\u305f\u3044\u3067\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u524d\u56de\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u542b\u3081\u3001\u4fdd\u5b58\u3055\u308c\u305f\u5c65\u6b74\u5168\u4f53\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\ncat (Get-PSReadlineOption).HistorySavePath\r\n<\/pre>\n<p>\u8907\u96d1\u306a\u30b3\u30de\u30f3\u30c9\u3067\u3059\u304c\u3001\u4e00\u56de\u5b9f\u884c\u3057\u307e\u3048\u3070PowerShell\u306e\u5c65\u6b74\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u7c21\u5358\u306b\u518d\u5165\u529b\u3067\u304d\u307e\u3059\u3002<code>Ctrl+R<\/code>\u3068\u62bc\u3057\u305f\u3042\u3068\u3001\u300chist\u300d\u3068\u5165\u529b\u3059\u308c\u3070\u3053\u306e\u30b3\u30de\u30f3\u30c9\u304c\u691c\u7d22\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u3001PowerShell\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6a5f\u80fd\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>Ctrl+R<\/strong>: \u5c65\u6b74\u306e\u691c\u7d22\u6a5f\u80fd<\/li>\n<li><strong>\u2191\u2193<\/strong>: \u5c65\u6b74\u306e\u79fb\u52d5<\/li>\n<li><strong>Tab<\/strong>: \u5165\u529b\u88dc\u5b8c<\/li>\n<\/ul>\n<p>bash\u3084zsh\u306e\u3088\u3046\u306a\u6a5f\u80fd\u304c\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>PowerShell\u306e\u5c65\u6b74\u6a5f\u80fd\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u500b\u4eba\u7684\u306b\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306b\u306f\u3042\u307e\u308a\u9b45\u529b\u3092\u611f\u3058\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u5c65\u6b74\u6a5f\u80fd\u306e\u5b58\u5728\u3092\u77e5\u3063\u3066\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u4e57\u308a\u63db\u3048\u308b\u3053\u3068\u3092\u6c7a\u610f\u3057\u307e\u3057\u305f\u3002\u5c65\u6b74\u597d\u304d\u306e\u65b9\u306fPowerShell\u3092\u4e00\u5ea6\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>PowerShell\u306e\u5b9f\u884c\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/softantenna.com\/blog\/windows-11-powershell\/\">https:\/\/softantenna.com\/blog\/windows-11-powershell\/<\/a><\/p>\n<p>Windows 11\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/softantenna.com\/blog\/windows11\/\">https:\/\/softantenna.com\/blog\/windows11\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows 11\u3084Windows 10\u3067\u306f\u300cPowerShell\u300d\u3068\u547c\u3070\u308c\u308b\u591a\u6a5f\u80fd\u30b7\u30a7\u30eb\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 PowerShell\u306f\u5f93\u6765\u306e\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u4ee3\u308f\u308a\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u3001\u300c\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u300d\u3068\u547c\u3070\u308c\u308b\u5404 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":120423,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2047],"tags":[3298,4387],"class_list":["post-120406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-windows","tag-windows11"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/120406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=120406"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/120406\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/120423"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=120406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=120406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=120406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}