{"id":6934,"date":"2022-04-14T11:23:13","date_gmt":"2022-04-14T02:23:13","guid":{"rendered":"https:\/\/www.manageengine.jp\/support\/kb\/Desktop_Central\/?p=6934"},"modified":"2022-04-14T12:10:30","modified_gmt":"2022-04-14T03:10:30","slug":"%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e6%a9%9f%e8%83%bd%e3%81%a7powershell%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e3%81%ab%e3%81%af%e3%81%a9%e3%81%86","status":"publish","type":"post","link":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/?p=6934","title":{"rendered":"\u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8\u6a5f\u80fd\u3067PowerShell\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\u3002"},"content":{"rendered":"<h5>\u8cea\u554f<\/h5>\n<p><a href=\"https:\/\/www.manageengine.jp\/support\/kb\/Desktop_Central\/?p=2836\">\u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8<\/a>\u6a5f\u80fd\u3067\u3001\u7ba1\u7406\u5bfe\u8c61\u306e Windows \u306b PowerShell \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3055\u305b\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u5b9f\u884c\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n&nbsp;<\/p>\n<h5>\u56de\u7b54<\/h5>\n<p>PowerShell \u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u72b6\u614b\u3067\u306f\u30dd\u30ea\u30b7\u30fc\u306e\u5236\u9650\u306b\u3088\u308a\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n-ExecutionPolicy Bypass \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4ed8\u3051\u3066PowerShell\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30de\u30f3\u30c9\u304b\u3089\u5b9f\u884c\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u56de\u907f\u7b56\u3092\u3054\u5229\u7528\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol>\n<li>\u5b9f\u884c\u3057\u305f\u3044\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3059(\u3053\u3053\u3067\u306f\u4eee\u306b ScriptName.ps1 \u3068\u3057\u307e\u3059\u3002)\u3002<\/li>\n<li>\u69cb\u6210 &gt; (\u5de6\u30e1\u30cb\u30e5\u30fc\u306e)\u69cb\u6210\u306e\u8ffd\u52a0 &gt; \u69cb\u6210 &gt; Windows &gt; \u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8 &gt; \u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc(\u307e\u305f\u306f\u30e6\u30fc\u30b6\u30fc)\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li>\u4efb\u610f\u306e\u540d\u524d\u3068\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8aac\u660e\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/li>\n<li>\u6b21\u306b\u6307\u5b9a\u3057\u305f\u5f62\u5f0f\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b: \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3 \u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n<blockquote style=\"margin-top: 5px;\"><p>c:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -NoLogo -File \"ScriptName.ps1\"<\/p><\/blockquote>\n<div class=\"point\">\n  PowerShell\u306e\u5b9f\u884c\u30dd\u30ea\u30b7\u30fc\u3092\u4e00\u6642\u7684\u306b\u5909\u66f4\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc -ExecutionPolicy Bypass \u3092\u4ed8\u3051\u3066\u3044\u307e\u3059\u3002\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u95a2\u3057\u3066\u306f\u3001Microsoft \u306e<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/powershell\/module\/microsoft.powershell.core\/about\/about_powershell_exe?view=powershell-5.1\" target=\"_blank\" rel=\"noopener noreferrer\">PowerShell\u306b\u95a2\u3059\u308b\u8aac\u660e<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\n  <\/div>\n<\/li>\n<li>\u4f9d\u5b58\u30d5\u30a1\u30a4\u30eb: \u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb ScriptName.ps1 \u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li>\u5b9f\u884c\u9593\u9694\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n<div class=\"point\">\n  \u5b9f\u884c\u30c6\u30b9\u30c8\u3092\u5b9f\u65bd\u3059\u308b\u5834\u5408\u306a\u3069\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5b9f\u884c\u9593\u9694\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u69cb\u6210\u306e\u7d50\u679c\u753b\u9762\u304b\u3089\u30ed\u30b0\u3092\u78ba\u8a8d\u3067\u304d\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5b9f\u884c\u983b\u5ea6: 1\u56de<\/li>\n<li>\u300c\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u305f\u3081\u306b\u30ed\u30b0\u3092\u53d6\u5f97\u3059\u308b\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b<\/li>\n<\/ul>\n<p>  \u69cb\u6210\u30bf\u30d6 \u3092\u958b\u304d\u3001 \u30d5\u30a3\u30eb\u30bf\u30fc\u6761\u4ef6: \u69cb\u6210 &gt; Windows &gt; \u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8 \u306e\u6761\u4ef6\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u78ba\u8a8d\u3057\u305f\u3044\u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8\u69cb\u6210\u3092\u898b\u3064\u3051\u307e\u3059\u3002<br \/>\n  \u78ba\u8a8d\u3057\u305f\u3044\u69cb\u6210\u306e \u5b9f\u884c\u72b6\u614b &gt; \u5099\u8003\u6b04 \u306b \u300c\u30ed\u30b0\u3092\u95b2\u89a7\u300d \u30ea\u30f3\u30af\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002(\u5024\u3092\u8fd4\u3055\u306a\u3044\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5834\u5408\u306f\u3001\u4f55\u3082\u8868\u793a\u3055\u308c\u307e\u305b\u3093)<br \/>\n  <a href=\"http:\/\/www.manageengine.jp\/support\/kb\/Desktop_Central\/wp-content\/uploads\/sites\/16\/2022\/04\/view_logs.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.manageengine.jp\/support\/kb\/Desktop_Central\/wp-content\/uploads\/sites\/16\/2022\/04\/view_logs-300x93.png\" alt=\"\" width=\"600\" height=\"186\" class=\"alignnone size-medium wp-image-6939\" srcset=\"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/wp-content\/uploads\/sites\/16\/2022\/04\/view_logs-300x93.png 300w, https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/wp-content\/uploads\/sites\/16\/2022\/04\/view_logs.png 889w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a>\n  <\/div>\n<\/li>\n<li>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/li>\n<li>\u914d\u5e03\u5bfe\u8c61\u3001\u518d\u8a66\u884c\u56de\u6570\u3001\u901a\u77e5\u3092\u8a2d\u5b9a\u3057\u3001[\u914d\u5e03]\u307e\u305f\u306f[\u4eca\u3059\u3050\u914d\u5e03]\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u3067\u3001PowerShell\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8cea\u554f \u30ab\u30b9\u30bf\u30e0\u30b9\u30af\u30ea\u30d7\u30c8\u6a5f\u80fd\u3067\u3001\u7ba1\u7406\u5bfe\u8c61\u306e Windows \u306b PowerShell \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3055\u305b\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u5b9f\u884c\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u2026 <a href=\"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/?p=6934\" class=\"more\">\uff3b\u7d9a\u304d\u3092\u8aad\u3080\uff3d<\/a><\/p>\n","protected":false},"author":72,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[39,20],"tags":[1094,1095,283,94],"class_list":["post-6934","post","type-post","status-publish","format-standard","hentry","category-11-06configurations","category-01faq","tag-powershell","tag-ps1","tag-283","tag-94"],"modified_by":"seiji","_links":{"self":[{"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=\/wp\/v2\/posts\/6934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=\/wp\/v2\/users\/72"}],"replies":[{"embeddable":true,"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6934"}],"version-history":[{"count":4,"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=\/wp\/v2\/posts\/6934\/revisions"}],"predecessor-version":[{"id":6940,"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=\/wp\/v2\/posts\/6934\/revisions\/6940"}],"wp:attachment":[{"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.manageengine.jp\/support\/kb\/Endpoint_Central\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}