
{"id":349,"date":"2021-04-09T18:03:49","date_gmt":"2021-04-09T09:03:49","guid":{"rendered":"https:\/\/techmania.rensa.jp.net\/?p=349"},"modified":"2024-01-30T16:26:57","modified_gmt":"2024-01-30T07:26:57","slug":"powershell0002","status":"publish","type":"post","link":"https:\/\/techmania.jp\/blog\/powershell0002\/","title":{"rendered":"PowerShell\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u672c\u8a18\u4e8b\u3067\u306f PowerShell \u3067\u96fb\u5b50\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092 Script \u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u304b\u3089\u5b9f\u884c\u307e\u3067\u3092\u624b\u9806\u3068\u3057\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<br>\u307e\u305f\u3001\u5b9f\u7528\u7de8\u3068\u3057\u3066\u3001Web \u30b5\u30a4\u30c8\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306b\u4f34\u3046\u969c\u5bb3\u691c\u77e5\u30e1\u30fc\u30eb\u306e\u81ea\u52d5\u9001\u4fe1\u306e\u5b9f\u88c5\u65b9\u6cd5\u3082\u63b2\u8f09\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3088\u3051\u308c\u3070\u305d\u3061\u3089\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p>PowerShell \u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306f<span class=\"markerYellow\"><strong>\u226aSend-MailMessage\u226b<\/strong><\/span>\u3067\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u5229\u7528\u3057\u3066PowerShell\u304b\u3089\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<br>\u305d\u308c\u3067\u306f\u65e9\u901f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">PowerShell\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<h3 id=\"outline__1_1\" class=\"wp-block-heading\" id=\"\u524d\u63d0\u6761\u4ef6\">\u524d\u63d0\u6761\u4ef6<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30e1\u30fc\u30eb\u9001\u4fe1\u53ef\u80fd\u306a SMTP \u30b5\u30fc\u30d0\u3092\u4fdd\u6709\u3057\u3066\u3044\u308b\u3053\u3068<\/li>\n\n\n\n<li>PowerShell Script \u306e\u5b9f\u884c\u304c\u5fc5\u8981\u3068\u306a\u308b\u305f\u3081\u5bfe\u8c61\u30de\u30b7\u30f3\u306e ExecutionPolicy \u304c <strong>RemoteSigned<\/strong> \u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068<\/li>\n<\/ul>\n\n\n<p>\u3082\u3057 ExecutionPolicy \u8a2d\u5b9a\u524d\u3067\u3042\u308c\u3070\u7ba1\u7406\u8005\u6a29\u9650\u3067 PowerShell \u3092\u8d77\u52d5\u3057\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:default decode:true \" title=\"ExecutionPolicy \u5909\u66f4\u30b3\u30de\u30f3\u30c9\">Set-ExecutionPolicy RemoteSigned<\/pre><\/div>\n\n\n\n<h3 id=\"outline__1_2\" class=\"wp-block-heading\" id=\"\u5b9f\u884c\u53ef\u80fd\u74b0\u5883\">\u5b9f\u884c\u53ef\u80fd\u74b0\u5883<\/h3>\n\n\n\n<p>Windows PowerShell \u304c\u5b9f\u884c\u53ef\u80fd\u306a OS Version \u3067\u3042\u308c\u3070\u3001Windows10 \u3084 Windows Server \u3069\u3061\u3089\u3067\u3082\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n<div style=\"margin-top:4%;\">\n<a href=\"https:\/\/techmania.jp\/\"><\/a><p style=\"text-align:center; text-decoration:underline black; font-weight:bold;\">\u3042\u306a\u305f\u306e<span style=\"color: red;\">\u3054\u5e0c\u671b\u306b\u6cbf\u3063\u305f\u6848\u4ef6<\/span>\u304c\u5fc5\u305a\u898b\u3064\u304b\u308a\u307e\u3059<br>\u3010\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u5411\u3051\u3011<span style=\"color: red;\">\u9ad8\u53ce\u5165<\/span>\u30fb<span style=\"color: blue;\">\u597d\u5f85\u9047<\/span>\u306e\u6848\u4ef6\u3092\u3054\u7d39\u4ecb<\/p><\/a>\n<\/div>\n<div style=\"text-align:center; margin-top:1%;\"><a href=\"https:\/\/techmania.jp\/\"><img decoding=\"async\" style=\"filter: drop-shadow(0px 0px 3px rgba(0,0,0,0.3)); width:300px;\" alt=\"TECH MANIA \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\" src=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2024\/01\/fl1.png\"><\/a><\/div>\n<div>\n<a href=\"https:\/\/techmania.jp\/\"><\/a><p style=\"margin-top: 1%;text-align:center; text-decoration:underline black; font-weight:bold;\">\u226b\u307e\u305a\u306f\u7c21\u5358<span style=\"color: blue;\">60<\/span>\u79d2\u3067<span style=\"color: red;\">\u7121\u6599\u304a\u554f\u3044\u5408\u308f\u305b<\/span>\u304b\u3089\u226a<\/p><\/a>\n\n\n<h3 id=\"outline__1_3\" class=\"wp-block-heading\" id=\"shellscript-\u672c\u4f53\">\u624b\u9806<\/h3>\n\n\n\n<p><strong>1. \u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/strong><\/p>\n\n\n<p><span class=\"markerYellow\"><strong>\u300cmail_send.ps1\u300d<\/strong><strong>\u30d5\u30a1\u30a4\u30eb<\/strong><\/span>\u3092\u4efb\u610f\u306e\u5834\u6240\u3067\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>Script \u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u3092\u74b0\u5883\u306b\u5247\u3057\u305f\u3082\u306e\u3078\u5909\u66f4\u3057\u305f\u3082\u306e\u3092\u8a18\u8ff0\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30da\u3057\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u7528 SMTP \u30b5\u30fc\u30d0\u30fc\u3084\u751f\u5b58\u78ba\u8a8d\u3092\u884c\u3046\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u5909\u66f4\u3059\u308c\u3070\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:default decode:true \" title=\"\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\">$MailParam = @{\n        SmtpServer = \"&lt;SMTP \u30b5\u30fc\u30d0\u30c9\u30e1\u30a4\u30f3&gt;\";\n        From = \"&lt;\u9001\u4fe1\u5143\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&gt;\";\n        To = \"&lt;\u9001\u4fe1\u5148\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&gt;\";\n        Subject = \"&lt;\u4ef6\u540d&gt;\"\n        Body = \"&lt;\u672c\u6587&gt;\"\n        Encoding = [System.Text.Encoding]::UTF8\n      }\n      Send-MailMessage @MailParam<\/pre><\/div>\n\n\n<p>\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u6982\u8981\u3092\u4ee5\u4e0b\u306b\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u306e\u3067\u3001\u8a2d\u5b9a\u306e\u53c2\u8003\u306b\u3054\u5229\u7528\u304f\u3060\u3055\u3044\u3002<br>\u5fc5\u9808\u3067\u306a\u3044\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td> *smtp<\/td><td> IP \u30a2\u30c9\u30ec\u30b9 \u307e\u305f\u306f SMTP \u30b5\u30fc\u30d0 \u306e\u30c9\u30e1\u30a4\u30f3<\/td><\/tr><tr><td> *from<\/td><td> \u9001\u4fe1\u5143\u30a2\u30c9\u30ec\u30b9<\/td><\/tr><tr><td> *to<\/td><td> \u9001\u4fe1\u5148\u30a2\u30c9\u30ec\u30b9<\/td><\/tr><tr><td> cc<\/td><td> Cc \u9001\u4fe1\u5148\u30a2\u30c9\u30ec\u30b9<\/td><\/tr><tr><td> bcc<\/td><td> \u975e\u516c\u958b\u9001\u4fe1\u5148\u30a2\u30c9\u30ec\u30b9<\/td><\/tr><tr><td> *subject<\/td><td> \u4ef6\u540d<\/td><\/tr><tr><td> *body<\/td><td> \u672c\u6587<\/td><\/tr><tr><td> port<\/td><td> SMTP \u30dd\u30fc\u30c8<\/td><\/tr><tr><td> Encoding<\/td><td> \u6587\u5b57\u30b3\u30fc\u30c9\u306e\u6307\u5b9a<br><mark style=\"background-color:rgba(0, 0, 0, 0);color:#72787e\" class=\"has-inline-color\">\u203b\u74b0\u5883\u306b\u5fdc\u3058\u3066\u9069\u5b9c\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u4e00\u822c\u7684\u306a\u74b0\u5883\u3067\u3042\u308c\u3070 UTF8 \u3092\u6307\u5b9a\u3057\u3066\u3044\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p>* \u30fb\u30fb\u30fb\u5fc5\u9808\u30d1\u30e9\u30e1\u30fc\u30bf<\/p>\n\n\n<p><strong>2. \u5b9f\u969b\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3066\u307f\u308b\u3002<\/strong><\/p>\n\n\n<p>\u624b\u98061\u3067\u4f5c\u6210\u3057\u305f ps1 \u30d5\u30a1\u30a4\u30eb\u3092 PowerShell \u304b\u3089\u5b9f\u884c\u3059\u308b\u304b\u3001\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u4e0a\u304b\u3089 ps1 \u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u958b\u304f\u3053\u3068\u3067\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<br>\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\u3067\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u975e\u5e38\u306b\u77ed\u3044\u624b\u9806\u3067\u3057\u305f\u304c\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u306f\u975e\u5e38\u306b\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u5b9f\u7528\u7de8\u3068\u3057\u3066 Web \u30b5\u30a4\u30c8\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3063\u305f\u969b\u306b\u6b63\u5e38\u5024\u3067\u3042\u308b response code200 \u4ee5\u5916\u304c web \u30b5\u30a4\u30c8\u304b\u3089\u8fd4\u5374\u3055\u308c\u305f\u969b\u306b\u81ea\u52d5\u3067\u901a\u77e5\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u3068\u3044\u3063\u305f\u5b9f\u88c5\u3092\u884c\u3046\u5834\u5408\u306e\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">PowerShell \u3067 Web \u30b5\u30a4\u30c8\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3068\u30e1\u30fc\u30eb\u901a\u77e5<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:ps decode:true \" title=\"health_checker.ps1\">$urls = @(\n  \"https:\/\/xxx.com\/\",\n  \"http:\/\/yyy.com\/\"\n)\nfor ($i = 0; $i -lt $urls.Length; $i++){\n    $request = curl $urls[$i]\n    $responseCode = $request.StatusCode\n    if( $responseCode -eq 200 ) {\n      # \u6b63\u5e38\u6642\u306e\u51e6\u7406\u304c\u3042\u308c\u3070\u3053\u3053\u306b\n    } else {\n      # \u60f3\u5b9a\u3057\u3066\u3044\u306a\u3044 response code \u306e\u5834\u5408\u306e\u51e6\u7406\u3092\u3053\u3053\u306b\n      $MailParam = @{\n        SmtpServer = \"&lt;SMTP \u30b5\u30fc\u30d0\u30c9\u30e1\u30a4\u30f3&gt;\";\n        From = \"&lt;\u9001\u4fe1\u5143\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&gt;\";\n        To = \"&lt;\u9001\u4fe1\u5148\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&gt;\";\n        Subject = $urls[$i] + \":health checker server error\"\n        Body = \"response failer - url : \" + $urls[$i] + \"`n Correspondence contents : `n The server may be down.\"\n        Encoding = [System.Text.Encoding]::UTF8\n      }\n      Send-MailMessage @MailParam\n    }\n}<\/pre><\/div>\n\n\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002<br>\u66f4\u306b\u8e0f\u307f\u8fbc\u3080\u3068\u3001\u30a8\u30e9\u30fc\u306e\u691c\u77e5\u306f\u624b\u52d5\u3067\u306f\u306a\u304f\u81ea\u52d5\u3067\u884c\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3067\u3059\u3088\u306d\u3002<br>ps1 \u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u52d5\u3067\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3082\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u305d\u3061\u3089\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h3 id=\"outline__2_1\" class=\"wp-block-heading\" id=\"\u88dc\u8db3-\u81ea\u52d5\u3067\u5b9a\u671f\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\">\u88dc\u8db3\uff1a\u81ea\u52d5\u3067\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n<p>\u81ea\u52d5\u5316\u3092\u3059\u308b\u5834\u5408\u3001Windows \u3067\u3042\u308c\u3070\u300c\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u300d\u304c\u4fbf\u5229\u3067\u3059\u3002<br>Linux \u3067\u3042\u308c\u3070 cron \u3068\u805e\u304f\u3068\u99b4\u67d3\u307f\u306e\u3042\u308b\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br>\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u306e\u767b\u9332\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u516c\u958b\u3057\u3066\u304a\u308a\u307e\u3059\u3002<br>Web \u30b5\u30a4\u30c8\u306e\u751f\u5b58\u78ba\u8a8d\u3092\u884c\u3046 PowerShell Script \u3092\u7d39\u4ecb\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001PowerShell \u3092\u672c\u624b\u9806\u3067\u767b\u9332\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\nhttps:\/\/techmania.jp\/blog\/windows0001\/\n\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"PowerShell\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u300cmail_send.ps1\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u4efb\u610f\u306e\u5834\u6240\u3067\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\nScript \u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u3092\u74b0\u5883\u306b\u5247\u3057\u305f\u3082\u306e\u3078\u5909\u66f4\u3057\u305f\u3082\u306e\u3092\u8a18\u8ff0\u3057\u307e\u3057\u3087\u3046\u3002\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"\u5b9f\u884c\u53ef\u80fd\u74b0\u5883\u306f\uff1f\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Windows PowerShell \u304c\u5b9f\u884c\u53ef\u80fd\u306a OS Version \u3067\u3042\u308c\u3070\u3001Windows10 \u3084 Windows Server \u3069\u3061\u3089\u3067\u3082\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"\u81ea\u52d5\u3067\u5b9a\u671f\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306f\uff1f\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"\u81ea\u52d5\u5316\u3092\u3059\u308b\u5834\u5408\u3001Windows \u3067\u3042\u308c\u3070\u300c\u30bf\u30b9\u30af\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u300d\u304c\u4fbf\u5229\u3067\u3059\u3002\nLinux \u3067\u3042\u308c\u3070 cron \u3068\u805e\u304f\u3068\u99b4\u67d3\u307f\u306e\u3042\u308b\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\"\n    }\n  }]\n}\n<\/script>\n","protected":false},"excerpt":{"rendered":"\u672c\u8a18\u4e8b\u3067\u306f PowerShell \u3067\u96fb\u5b50\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092 Script \u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u304b\u3089\u5b9f\u884c\u307e\u3067\u3092\u624b\u9806\u3068\u3057\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u5b9f\u7528\u7de8\u3068\u3057\u3066\u3001Web \u30b5\u30a4\u30c8\u306e\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306b\u4f34\u3046\u969c\u5bb3\u691c\u77e5\u30e1\u30fc\u30eb\u306e\u81ea\u52d5\u9001\u4fe1\u306e\u5b9f\u88c5\u65b9\u6cd5\u3082\u63b2\u8f09\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3088\u3051\u308c\u3070\u305d\u3061\u3089\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 PowerShell \u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306f\u226aSend-MailMessage\u226b\u3067\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u3092\u5229\u7528\u3057\u3066Power [&hellip;]","protected":false},"author":2,"featured_media":351,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[12,64,60],"class_list":["post-349","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-powershell","tag-web","tag-treatment"],"_links":{"self":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/comments?post=349"}],"version-history":[{"count":46,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/349\/revisions"}],"predecessor-version":[{"id":6667,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/349\/revisions\/6667"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media\/351"}],"wp:attachment":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media?parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/categories?post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/tags?post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}