{"id":10561,"date":"2018-07-06T12:00:12","date_gmt":"2018-07-06T03:00:12","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=10561"},"modified":"2022-01-12T23:52:28","modified_gmt":"2022-01-12T14:52:28","slug":"powershell%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%81%e4%bf%a1%e7%94%a8%e9%96%a2%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=10561","title":{"rendered":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570"},"content":{"rendered":"<p>\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMailKit\u3092\u3054\u4f7f\u7528\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=11087\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-PowerShell-120x120.png' alt='[PowerShell]MailKit\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2018.11.28<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=11087\">[PowerShell]MailKit\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5 <\/a><\/div><div class=\"cardlink_excerpt\">\uff20IT\u3092\u773a\u3081\u3066\u3044\u305f\u3089\u3001\u6c17\u306b\u306a\u308b\u8a18\u4e8b\u3092\u898b\u304b\u3051\u307e\u3057\u305f\u3002\r\n\r\n\r\n\r\nMailKit\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u884c\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7d39\u4ecb\u3067\u3059\u304c\u3001\u6c17\u306b\u306a\u3063\u305f\u306e\u306fSmtpClient\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u66f8\u304b\u308c\u305f\u90e8\u5206\u3002\r\n\r\n.NET Framework 2.0\u4ee5\u6765\u3001\u30e1\u30fc\u30eb\u9001\u4fe1...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<hr \/>\n<p>PowerShell\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u6a5f\u4f1a\u304c\u5897\u3048\u3066\u304d\u305f\u306e\u3067\u3001\u51e6\u7406\u3092\u95a2\u6570\u5316\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">function sendMail(\r\n    $UserID,                            #\u30e6\u30fc\u30b6\u30fcID\r\n    $UserPassword,                      #\u30d1\u30b9\u30ef\u30fc\u30c9\r\n    $MailFrom,                          #From\r\n    $MailToAry,                         #To(\u914d\u5217\u3067\u6307\u5b9a)\r\n    $MailCcAry,                         #Cc(\u914d\u5217\u3067\u6307\u5b9a)\r\n    $MailBccAry,                        #Bcc(\u914d\u5217\u3067\u6307\u5b9a)\r\n    $MailSubject,                       #\u4ef6\u540d\r\n    $MailBody,                          #\u672c\u6587\r\n    $MailAtthPathAry,                   #\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9(\u914d\u5217\u3067\u6307\u5b9a)\r\n    $MailEncoding = &quot;utf-8&quot;,            #\u672c\u6587\u3068\u4ef6\u540d\u306e\u30a8\u30f3\u30b3\u30fc\u30c9\r\n    $MailServer = &quot;smtp.office365.com&quot;, #\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\r\n    $MailPort = 587,                    #\u30dd\u30fc\u30c8\u756a\u53f7\r\n    $SSLFlg = $true                     #SSL\u3092\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\r\n  ){\r\n  \r\n  #Message\r\n  $Msg = New-Object System.Net.Mail.MailMessage\r\n  $Msg.From = $MailFrom\r\n  foreach($MailTo in $MailToAry){\r\n    $Msg.To.Add($MailTo)\r\n  }\r\n  if($MailCcAry -is &#x5B;array]){\r\n    foreach($MailCc in $MailCcAry){\r\n      $Msg.CC.Add($MailCc)\r\n    }\r\n  }\r\n  if($MailBccAry -is &#x5B;array]){\r\n    foreach($MailBcc in $MailBccAry){\r\n      $Msg.Bcc.Add($MailBcc)\r\n    }\r\n  }\r\n  $Msg.Subject = $MailSubject\r\n  $Msg.SubjectEncoding = &#x5B;System.Text.Encoding]::GetEncoding($MailEncoding);\r\n  $Msg.Body = $MailBody\r\n  $Msg.BodyEncoding = &#x5B;System.Text.Encoding]::GetEncoding($MailEncoding);\r\n  if($MailAtthPathAry -is &#x5B;array]){\r\n    foreach($MailAtthPath in $MailAtthPathAry){\r\n      if(&#x5B;System.IO.File]::Exists($MailAtthPath)){\r\n        $MailAtth = New-Object System.Net.Mail.Attachment($MailAtthPath)\r\n        $Msg.Attachments.Add($MailAtth)\r\n      }\r\n    }\r\n  }\r\n  \r\n  #Server\r\n  $Smtp = New-Object System.Net.Mail.SmtpClient($MailServer, $MailPort)\r\n  $Smtp.Credentials = New-Object System.Net.NetworkCredential($UserID, $UserPassword)\r\n  $Smtp.EnableSsl = $SSLFlg\r\n  $Smtp.Send($Msg)\r\n  \r\n  $Msg.Dispose()\r\n  $Smtp.Dispose()\r\n  return\r\n}\r\n\r\nsendMail &quot;user@hogehogexxx.onmicrosoft.com&quot; &quot;passxxxx&quot; &quot;from@hogehogexxx.onmicrosoft.com&quot; @(&quot;to@hogehogexxx.onmicrosoft.com&quot;) &quot;&quot; &quot;&quot; &quot;\u30c6\u30b9\u30c8\u30e1\u30fc\u30eb&quot; &quot;\u672c\u65871`r`n\u672c\u65872&quot; @(&quot;C:\\Test\\Test1.docx&quot;, &quot;C:\\Test\\Test2.docx&quot;)<\/pre>\n<p><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/powershell\/module\/microsoft.powershell.utility\/send-mailmessage\" title=\"Send-MailMessage\" target=\"_blank\" rel=\"noopener\">Send-MailMessage<\/a>\u30b3\u30de\u30f3\u30c9\u30ec\u30c3\u30c8\u306e\u65b9\u304c\u7c21\u5358\u306a\u306e\u3067\u3059\u304c\u3001\u7d30\u304b\u304f\u5236\u5fa1\u3067\u304d\u308b<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/system.net.mail.smtpclient.aspx\" title=\"SmtpClient \u30af\u30e9\u30b9 (System.Net.Mail)\" target=\"_blank\" rel=\"noopener\">SmtpClient<\/a>\u30af\u30e9\u30b9\u306e\u65b9\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u6a19\u6e96\u3067\u306fOffice 365\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u521d\u671f\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n<h4 class=\"style4a\">\u53c2\u8003Web\u30da\u30fc\u30b8<\/h4>\n<ul>\n<li>\u3010PowerShell\u3011Windows PowerShell \u3092\u4f7f\u7528\u3057\u3066 GMail \u3084 Office 365 \u304b\u3089\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/blogs.technet.microsoft.com\/junichia\/2011\/12\/08\/powershellwindows-powershell-gmail-office-365\/\" target=\"_blank\" title=\"\u3010PowerShell\u3011Windows PowerShell \u3092\u4f7f\u7528\u3057\u3066 GMail \u3084 Office 365 \u304b\u3089\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\" rel=\"noopener\">https:\/\/blogs.technet.microsoft.com\/junichia\/2011\/12\/08\/powershellwindows-powershell-gmail-office-365\/<\/a><\/li>\n<li>SmtpClient\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/dobon.net\/vb\/dotnet\/internet\/smtpclient.html\" target=\"_blank\" title=\"SmtpClient\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\" rel=\"noopener\">https:\/\/dobon.net\/vb\/dotnet\/internet\/smtpclient.html<\/a><\/li>\n<li>CC\u3001BCC\u3001\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3001\u512a\u5148\u9806\u4f4d\u306a\u3069\u3092\u6307\u5b9a\u3057\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/dobon.net\/vb\/dotnet\/internet\/smtpmail2.html\" target=\"_blank\" title=\"CC\u3001BCC\u3001\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3001\u512a\u5148\u9806\u4f4d\u306a\u3069\u3092\u6307\u5b9a\u3057\u3066\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\" rel=\"noopener\">https:\/\/dobon.net\/vb\/dotnet\/internet\/smtpmail2.html<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMailKit\u3092\u3054\u4f7f\u7528\u304f\u3060\u3055\u3044\u3002 PowerShell\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u6a5f\u4f1a\u304c\u5897\u3048\u3066\u304d\u305f\u306e\u3067\u3001\u51e6\u7406\u3092\u95a2\u6570\u5316\u3057\u3066\u307f\u307e [&hellip;]","protected":false},"author":1,"featured_media":7127,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u6bce\u56de\u51e6\u7406\u3092\u66f8\u304f\u306e\u304c\u9762\u5012\u304f\u3055\u3044\u306e\u3067\u95a2\u6570\u5316\u3057\u3066\u307f\u307e\u3057\u305f\u3002 [[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94],"tags":[],"class_list":["post-10561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMail\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u304d\u306c\u3042\u3055\"\/>\n\t<meta name=\"google-site-verification\" content=\"xy7uchdGM1SE5sADlVsdekXridA1vSaVWceffSwnE48\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ka-net.org\/blog\/?p=10561\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u521d\u5fc3\u8005\u5099\u5fd8\u9332 | Power Automate for desktop\u3084Microsoft Office\u958b\u767a\u306e\u60c5\u5831\u304c\u6e80\u8f09\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" \/>\n\t\t<meta property=\"og:description\" content=\"\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMail\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ka-net.org\/blog\/?p=10561\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2018-07-06T03:00:12+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-01-12T14:52:28+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMail\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#article\",\"name\":\"[PowerShell]\\u30e1\\u30fc\\u30eb\\u9001\\u4fe1\\u7528\\u95a2\\u6570 | \\u521d\\u5fc3\\u8005\\u5099\\u5fd8\\u9332\",\"headline\":\"[PowerShell]\\u30e1\\u30fc\\u30eb\\u9001\\u4fe1\\u7528\\u95a2\\u6570\",\"author\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/wp-content\\\/uploads\\\/eyecatch-PowerShell.png\",\"width\":790,\"height\":480},\"datePublished\":\"2018-07-06T12:00:12+09:00\",\"dateModified\":\"2022-01-12T23:52:28+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#webpage\"},\"articleSection\":\"PowerShell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?cat=94#listItem\",\"name\":\"PowerShell\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?cat=94#listItem\",\"position\":2,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?cat=94\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#listItem\",\"name\":\"[PowerShell]\\u30e1\\u30fc\\u30eb\\u9001\\u4fe1\\u7528\\u95a2\\u6570\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#listItem\",\"position\":3,\"name\":\"[PowerShell]\\u30e1\\u30fc\\u30eb\\u9001\\u4fe1\\u7528\\u95a2\\u6570\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?cat=94#listItem\",\"name\":\"PowerShell\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/#organization\",\"name\":\"\\u521d\\u5fc3\\u8005\\u5099\\u5fd8\\u9332\",\"description\":\"Power Automate for desktop\\u3084Microsoft Office\\u958b\\u767a\\u306e\\u60c5\\u5831\\u304c\\u6e80\\u8f09\",\"url\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?author=1#author\",\"url\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?author=1\",\"name\":\"\\u304d\\u306c\\u3042\\u3055\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1c6237fc3012b3da1f36fa6435b2ccea656e2ff69a51f709c7d8352c69356dc3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u304d\\u306c\\u3042\\u3055\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#webpage\",\"url\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561\",\"name\":\"[PowerShell]\\u30e1\\u30fc\\u30eb\\u9001\\u4fe1\\u7528\\u95a2\\u6570 | \\u521d\\u5fc3\\u8005\\u5099\\u5fd8\\u9332\",\"description\":\"\\u672c\\u8a18\\u4e8b\\u3067\\u4f7f\\u7528\\u3057\\u3066\\u3044\\u308bSmtpClient\\u306f2018\\u5e74\\u73fe\\u5728\\u975e\\u63a8\\u5968\\u3068\\u306a\\u3063\\u3066\\u3044\\u307e\\u3059\\u3002 \\u4e0b\\u8a18\\u8a18\\u4e8b\\u3067\\u7d39\\u4ecb\\u3057\\u3066\\u3044\\u308bMail\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/wp-content\\\/uploads\\\/eyecatch-PowerShell.png\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561\\\/#mainImage\",\"width\":790,\"height\":480},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/?p=10561#mainImage\"},\"datePublished\":\"2018-07-06T12:00:12+09:00\",\"dateModified\":\"2022-01-12T23:52:28+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/\",\"name\":\"\\u521d\\u5fc3\\u8005\\u5099\\u5fd8\\u9332\",\"description\":\"Power Automate for desktop\\u3084Microsoft Office\\u958b\\u767a\\u306e\\u60c5\\u5831\\u304c\\u6e80\\u8f09\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ka-net.org\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332","description":"\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMail","canonical_url":"https:\/\/www.ka-net.org\/blog\/?p=10561","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"xy7uchdGM1SE5sADlVsdekXridA1vSaVWceffSwnE48","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#article","name":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332","headline":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570","author":{"@id":"https:\/\/www.ka-net.org\/blog\/?author=1#author"},"publisher":{"@id":"https:\/\/www.ka-net.org\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-PowerShell.png","width":790,"height":480},"datePublished":"2018-07-06T12:00:12+09:00","dateModified":"2022-01-12T23:52:28+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#webpage"},"isPartOf":{"@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#webpage"},"articleSection":"PowerShell"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ka-net.org\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.ka-net.org\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ka-net.org\/blog\/?cat=94#listItem","name":"PowerShell"}},{"@type":"ListItem","@id":"https:\/\/www.ka-net.org\/blog\/?cat=94#listItem","position":2,"name":"PowerShell","item":"https:\/\/www.ka-net.org\/blog\/?cat=94","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#listItem","name":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ka-net.org\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#listItem","position":3,"name":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ka-net.org\/blog\/?cat=94#listItem","name":"PowerShell"}}]},{"@type":"Organization","@id":"https:\/\/www.ka-net.org\/blog\/#organization","name":"\u521d\u5fc3\u8005\u5099\u5fd8\u9332","description":"Power Automate for desktop\u3084Microsoft Office\u958b\u767a\u306e\u60c5\u5831\u304c\u6e80\u8f09","url":"https:\/\/www.ka-net.org\/blog\/"},{"@type":"Person","@id":"https:\/\/www.ka-net.org\/blog\/?author=1#author","url":"https:\/\/www.ka-net.org\/blog\/?author=1","name":"\u304d\u306c\u3042\u3055","image":{"@type":"ImageObject","@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1c6237fc3012b3da1f36fa6435b2ccea656e2ff69a51f709c7d8352c69356dc3?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u304d\u306c\u3042\u3055"}},{"@type":"WebPage","@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#webpage","url":"https:\/\/www.ka-net.org\/blog\/?p=10561","name":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332","description":"\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMail","inLanguage":"ja","isPartOf":{"@id":"https:\/\/www.ka-net.org\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#breadcrumblist"},"author":{"@id":"https:\/\/www.ka-net.org\/blog\/?author=1#author"},"creator":{"@id":"https:\/\/www.ka-net.org\/blog\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-PowerShell.png","@id":"https:\/\/www.ka-net.org\/blog\/?p=10561\/#mainImage","width":790,"height":480},"primaryImageOfPage":{"@id":"https:\/\/www.ka-net.org\/blog\/?p=10561#mainImage"},"datePublished":"2018-07-06T12:00:12+09:00","dateModified":"2022-01-12T23:52:28+09:00"},{"@type":"WebSite","@id":"https:\/\/www.ka-net.org\/blog\/#website","url":"https:\/\/www.ka-net.org\/blog\/","name":"\u521d\u5fc3\u8005\u5099\u5fd8\u9332","description":"Power Automate for desktop\u3084Microsoft Office\u958b\u767a\u306e\u60c5\u5831\u304c\u6e80\u8f09","inLanguage":"ja","publisher":{"@id":"https:\/\/www.ka-net.org\/blog\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u521d\u5fc3\u8005\u5099\u5fd8\u9332 | Power Automate for desktop\u3084Microsoft Office\u958b\u767a\u306e\u60c5\u5831\u304c\u6e80\u8f09","og:type":"article","og:title":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332","og:description":"\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMail","og:url":"https:\/\/www.ka-net.org\/blog\/?p=10561","article:published_time":"2018-07-06T03:00:12+00:00","article:modified_time":"2022-01-12T14:52:28+00:00","twitter:card":"summary","twitter:title":"[PowerShell]\u30e1\u30fc\u30eb\u9001\u4fe1\u7528\u95a2\u6570 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332","twitter:description":"\u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bSmtpClient\u306f2018\u5e74\u73fe\u5728\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u4e0b\u8a18\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308bMail"},"aioseo_meta_data":{"post_id":"10561","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-24 07:48:46","updated":"2022-09-14 03:02:59","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-2Kl","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-PowerShell.png","_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10561"}],"version-history":[{"count":3,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10561\/revisions"}],"predecessor-version":[{"id":14353,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10561\/revisions\/14353"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7127"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}