{"id":127,"date":"2020-08-23T21:36:35","date_gmt":"2020-08-23T12:36:35","guid":{"rendered":"https:\/\/wordpress.k8s.yukiafronia.com\/?p=127"},"modified":"2020-08-24T08:58:45","modified_gmt":"2020-08-23T23:58:45","slug":"windows-server-core-edition-build-smb-detail-with-powershelll","status":"publish","type":"post","link":"https:\/\/blog.yukiafronia.com\/?p=127","title":{"rendered":"Windows Server Core Edition build SMB (Detail) with PowerShelll"},"content":{"rendered":"<p>\u7686\u3055\u3093\u3001\u3053\u3093\u3070\u3093\u3061\u308f\u3067\u3059\u3002<br \/>\n\u30d4\u30f3\u6751\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001Fujitsu\u9bd6\u306eRX2560M2\u3061\u3083\u3093\u304c\u7121\u4e8b\u3054\u6a5f\u5acc\u3092\u53d6\u308a\u8fd4\u3057\u30d6\u30a5\u30aa\u30f3\u30d6\u30a5\u30aa\u30f3\u5168\u529b\u904b\u8ee2\u306b\u5165\u308a\u307e\u3057\u305f\u306e\u3067Windows Server Core\u3067SMB\u3092\u5efa\u3066\u3066\u3044\u304d\u307e\u3059\u3002\uff08\u4fd7\u306b\u3044\u3046\u5bb6\u5ead\u5185\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3063\u3066\u3084\u3064\u3067\u3059\u3002)  <\/p>\n<p>\u3067\u306f\u3001\u65e9\u901f\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046!!  <\/p>\n<h2>Windows Server Core\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3067\u306f\u3001\u65e9\u901f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002!!  <\/p>\n<p><img decoding=\"async\" width=\"512\" alt=\"SQL Server-2020-08-23-19-50-09\" src=\"https:\/\/user-images.githubusercontent.com\/23439178\/90977406-425a2500-e580-11ea-9c59-a1709d44013b.png\">  <\/p>\n<p>  <\/p>\n<p>\u8a00\u8a9e\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089&quot;\u4eca\u3059\u3050\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&quot;\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002  <\/p>\n<p><img decoding=\"async\" width=\"512\" alt=\"SQL Server-2020-08-23-19-50-19\" src=\"https:\/\/user-images.githubusercontent.com\/23439178\/90977407-438b5200-e580-11ea-9e6e-b950fe069a31.png\"><\/p>\n<p>  <\/p>\n<p>\u6b21\u306b\u3001Windows Server\u306e\u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u9078\u629e\u3067\u3059\u3002<br \/>\n\u57fa\u672c\u7684\u306b\u306f\u3001Enterprise\u3092\u9078\u3093\u3067\u304a\u3051\u3070\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001Standard\u3092\u9078\u629e\u3057\u305f\u304b\u3089\u3068\u8a00\u3063\u3066\u4f55\u304b\u3042\u308b\u308f\u3051\u3067\u3082\u7121\u3044\u306e\u3067\u3069\u3063\u3061\u3067\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<br \/>\n\u597d\u304d\u306a\u307b\u3046\u3092\u9078\u3093\u3069\u304d\u307e\u3057\u3087\u3046\u3002  <\/p>\n<p><img decoding=\"async\" width=\"512\" alt=\"SQL Server-2020-08-23-19-50-49\" src=\"https:\/\/user-images.githubusercontent.com\/23439178\/90977408-4423e880-e580-11ea-93a4-43774007d49e.png\"><\/p>\n<p>  <\/p>\n<p>\u6b21\u306b\u3001\u5229\u7528\u898f\u7d04\u3067\u3059\u3002<br \/>\n\u307e\u3041\u3001\u51fa\u6765\u308b\u9650\u308a\u8aad\u3093\u3067\u7406\u89e3\u3057\u305f\u4e0a\u3067 &quot;\u540c\u610f\u3057\u307e\u3059&quot;\u306e\u30c1\u30a7\u30c3\u30af\u3092\u62bc\u4e0b\u3059\u308b\u3079\u304d\u3067\u3059\u304c\u5b85\u5185\u74b0\u5883\u306a\u306e\u3067\u3042\u308b\u7a0b\u5ea6\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u3082\u3044\u3044\u304b\u306a\u3041\u3068\u601d\u3063\u305f\u308a\u3057\u307e\u3059\u3002  <\/p>\n<p><strong><em>\u51fa\u6765\u308b\u9650\u308a\u3001\u8aad\u3093\u3067\u7406\u89e3\u3057\u307e\u3057\u3087\u3046!!<\/em><\/strong>  <\/p>\n<p><img decoding=\"async\" width=\"512\" alt=\"SQL Server-2020-08-23-19-51-03\" src=\"https:\/\/user-images.githubusercontent.com\/23439178\/90977409-4423e880-e580-11ea-8076-6faa909beed5.png\"><\/p>\n<p>  <\/p>\n<p>\u753b\u50cf\u306b\u3082\u3042\u308b\u901a\u308a\u3067\u3059\u304c\u3001\u65b0\u898f\u306bOS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001\u4e0b\u306e &quot;\u30ab\u30b9\u30bf\u30e0&quot;\u304b\u3089\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4e07\u304c\u4e00\u3001&quot;\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9&quot;\u3092\u62bc\u4e0b\u3057\u3066\u3082\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u304c\u4e00\u304b\u3089\u3084\u308a\u76f4\u3057\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\uff57  (\u7b46\u8005\u4f53\u9a13\u8ac7)  <\/p>\n<p><img decoding=\"async\" width=\"512\" alt=\"SQL Server-2020-08-23-19-51-11\" src=\"https:\/\/user-images.githubusercontent.com\/23439178\/90977410-44bc7f00-e580-11ea-9115-81c1f610318b.png\"><\/p>\n<p>  <\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30c7\u30a3\u30b9\u30af\u306e\u9078\u629e\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u8907\u6570\u500b\u3001HDD\u3084SSD\u3092\u7a4d\u3093\u3067\u3044\u308b\u5834\u5408\u306f\u53f0\u6570\u5206\u898b\u3048\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001RAID\u306a\u3069\u3092\u7d44\u3093\u3067\u308b\u5834\u5408\u306f1\u53f0\u3057\u304b\u898b\u3048\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002(\u7d44\u3093\u3067\u3044\u308bRAID\u306b\u3088\u308b)  <\/p>\n<p><img decoding=\"async\" width=\"512\" alt=\"SQL Server-2020-08-23-19-51-28\" src=\"https:\/\/user-images.githubusercontent.com\/23439178\/90977411-44bc7f00-e580-11ea-840c-3ef81b422127.png\"><\/p>\n<p>  <\/p>\n<h2>Windows Server Core\u3067\u306e\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u8a31\u53ef\u3092\u884c\u3046<\/h2>\n<p>Windows Server Core\u306fGUI\u3067\u306e\u64cd\u4f5c\u304c\u4e0d\u53ef\u80fd\u306a\u70ba\u3001\u30ea\u30e2\u30fc\u30c8\u3067\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3092\u3059\u308b\u3053\u3068\u304c\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002  <\/p>\n<p>\u3067\u3059\u304c\u3001<br \/>\nSSH\u306e\u3088\u3046\u306a\u30ea\u30e2\u30fc\u30c8\u30d7\u30ed\u30c8\u30b3\u30eb\u306f\u57fa\u672c\u7684\u306bWindows\u3067\u306f\u88c5\u5099\u3057\u3066\u3044\u306a\u3044\u70ba\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3082\u3057\u304f\u306fPowerShell\u7b49\u3067\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3057\u307e\u3059\u3002  <\/p>\n<ul>\n<li>\n<p>Windows Server Core (Guest OS)<\/p>\n<pre><code class=\"language-powershell\">C:\\Users\\Administrator> powershell\nWindows PowerShell\nCopyright (C) Microsoft Corporation. All rights reserved.\n\u65b0\u3057\u3044\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e PowerShell \u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044 https:\/\/aka.ms\/pscore6\n\nPS C:\\Users\\Administrator> Enable-PSRemoting<\/code><\/pre>\n<\/li>\n<li>\n<p>Windows 10 (Host OS)  <\/p>\n<pre><code class=\"language-powershell\">PS C:\\Users\\Administrator> net start WinRM\n\nPS C:\\Users\\Administrator> Set-Item WSMan:\\localhost\\Client\\TrustedHosts -Value \"\u64cd\u4f5c\u3055\u308c\u308b\u5074\u306eIP<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u3067\u3001\u3068\u308a\u3042\u3048\u305aPowerShell\u3092\u4ecb\u3057\u305f\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304c\u51fa\u6765\u308b\u306f\u305a\u3067\u3059\u3002  <\/p>\n<p>\u306a\u304a\u3001  <\/p>\n<pre><code class=\"language-powershell\">Set-Item WSMan:\\localhost\\Client\\TrustedHosts -Value &quot;\u64cd\u4f5c\u3055\u308c\u308b\u5074\u306eIP<\/code><\/pre>\n<p>\u306b\u95a2\u3057\u3066\u306f\u30db\u30b9\u30c8\u5225\u306b\u767b\u9332\u304c\u5fc5\u8981\u306a\u70baWindows Server Core\u306e\u30db\u30b9\u30c8\u304c\u5897\u3048\u305f\u3068\u304d\u306b\u306f\u90fd\u5ea6\u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>SMB\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre><code class=\"language-powershell\">PS C:\\Users\\Administrator&gt; Install-WindowsFeature FS-FileServer<\/code><\/pre>\n<p>User \u65b0\u898f\u4f5c\u6210  <\/p>\n<pre><code class=\"language-powershell\">PS C:\\Users\\Administrator&gt; New-LocalUser -Name &quot;yhiramatsu&quot; `\n>&gt; -FullName &quot;YukiHiramatsu&quot; `\n>&gt; -Description &quot;SMB User&quot; `\n>&gt; -Password (ConvertTo-SecureString -AsPlainText &quot;Yukiafronia1102!&quot; -Force) `\n>&gt; -PasswordNeverExpires `\n>&gt; -AccountNeverExpires\n\n&quot;yhiramatsu&quot;\u30e6\u30fc\u30b6\u30fc\u3092\u30b0\u30eb\u30fc\u30d7&quot;Administrators&quot;\u306b\u8ffd\u52a0\u3059\u308b\u3002\nPS C:\\Users\\Administrator&gt; Add-ADGroupMember -Identity Administrators -Members yhiramatsu<\/code><\/pre>\n<p>\u30e6\u30fc\u30b6\u30fc\u3068\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u3092\u7d10\u3065\u3051<\/p>\n<pre><code class=\"language-powershell\">PS C:\\Users\\Administrator&gt; New-SmbShare -Name &quot;yhiramatsu&quot; -Path &quot;Y:\\&quot; -FullAccess &quot;yhiramatsu&quot;\n\n\u2191 2\u756a\u76ee\u306e&quot;yhiramatsu&quot;\u306f\u30e6\u30fc\u30b6\u30fc\u540d\n\n***\u7d99\u627f\u30ec\u30d9\u30eb\u3092\u7121\u52b9\u306b\u3057\u3066 ace \u3092\u30b3\u30d4\u30fc\u3059\u308b***\nPS C:\\Users\\Administrator&gt; icacls &quot;Y:\\&quot; \/inheritance:d<\/code><\/pre>\n<h2>Firewall\u8a2d\u5b9a<\/h2>\n<p>Windows\u306e\u5834\u5408\u3060\u3068\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u6709\u52b9\u306a\u5834\u5408\u3001ping (ICMP)\u306e\u30ea\u30d7\u30e9\u30a4\u3082\u8fd4\u3057\u3066\u304f\u308c\u306a\u3044\u3002<br \/>\n\u305d\u306e\u5834\u5408\u3001\u758e\u901a\u304c\u53d6\u308c\u3066\u3044\u308b\u306e\u304b\u3082\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u306a\u3044\u306e\u3067\u3001SMB\u306e\u30dd\u30fc\u30c8\u3068\u4e00\u7dd2\u306bping\u7528(ICMP)\u306e\u30dd\u30fc\u30c8\u3082\u4e00\u7dd2\u306b\u958b\u653e\u3059\u308b\u3002  <\/p>\n<pre><code class=\"language-powershell\">PS C:\\Users\\Administrator&gt; Set-NetFirewallRule FPS-SMB-In-TCP -Enabled True\n\nPS C:\\Users\\Administrator&gt; Set-NetFirewallRule FPS-SMB-Out-TCP -Enabled True\n\nPS C:\\Users\\Administrator&gt; Set-NetFirewallRule FPS-ICMP4-ERQ-In -Enabled True\n\nPS C:\\Users\\Administrator&gt; Set-NetFirewallRule FPS-ICMP4-ERQ-Out -Enabled True<\/code><\/pre>\n<p>\u4ee5\u4e0a\u3067\u3001\u69cb\u7bc9\u306f\u7d42\u4e86\u3067\u3059\u3002<br \/>\n\u6b63\u76f4\u3001GUI\u3067\u3084\u308c\u30705\u5206\u30c1\u30e7\u30a4\u3067\u7d42\u308f\u308b\u3068\u306f\u601d\u3046\u306e\u3067\u3059\u304cCUI\u3060\u3068\u5206\u304b\u308a\u306b\u304f\u3055MAX\u306b\u306a\u308b\u306a\u3041...(\u30ea\u30bd\u30fc\u30b9\u306f\u5927\u5e45\u524a\u6e1b\u3067\u304d\u308b\u3051\u3069\uff57)\u3068\u611f\u3058\u307e\u3057\u305f\u3002  <\/p>\n<p>GUI\u3054\u3068\u304d\u306b\u30ea\u30bd\u30fc\u30b9\u5272\u3044\u3066\u3089\u308c\u308b\u304b!!\u3063\u3066\u65b9\u306f\u662f\u975eWindows Server Core \u304a\u8a66\u3057\u306b\u306a\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044!!  <\/p>\n<p>OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u9818\u57df\u306f10GB\u3042\u308c\u3070\u8db3\u308a\u307e\u3059ww<\/p>\n<p>\u305d\u308c\u3067\u306f!!<\/p>\n<p>\u53c2\u8003URL  <\/p>\n<p>PowerShell\u3067\u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u30fc(\u30a2\u30ab\u30a6\u30f3\u30c8)\u3084\u30b0\u30eb\u30fc\u30d7\u306e\u8ffd\u52a0\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3092\u884c\u3046\u65b9\u6cd5<br \/>\n<a href=\"https:\/\/www.haruru29.net\/blog\/how-to-configure-local-users-using-powershell\/\">https:\/\/www.haruru29.net\/blog\/how-to-configure-local-users-using-powershell\/<\/a>  <\/p>\n<p>ServerWorld\u69d8<br \/>\nWindows Server 2019 \u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc : \u30d5\u30a1\u30a4\u30eb\u5171\u6709\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\n<a href=\"https:\/\/www.server-world.info\/query?os=Windows_Server_2019&amp;p=smb&amp;f=2\">https:\/\/www.server-world.info\/query?os=Windows_Server_2019&p=smb&f=2<\/a>  <\/p>\n<p>ServerWorld\u69d8<br \/>\nWindows Server 2019 \u521d\u671f\u8a2d\u5b9a : \u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u30fc\u3092\u65b0\u898f\u4f5c\u6210\u3059\u308b<br \/>\n<a href=\"https:\/\/www.server-world.info\/query?os=Windows_Server_2019&amp;p=initial_conf&amp;f=1\">https:\/\/www.server-world.info\/query?os=Windows_Server_2019&p=initial_conf&f=1<\/a>  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7686\u3055\u3093\u3001\u3053\u3093\u3070\u3093\u3061\u308f\u3067\u3059\u3002 \u30d4\u30f3\u6751\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001Fujitsu\u9bd6\u306eRX2560M2\u3061\u3083\u3093\u304c\u7121\u4e8b\u3054\u6a5f\u5acc\u3092\u53d6\u308a\u8fd4\u3057\u30d6\u30a5\u30aa\u30f3\u30d6\u30a5\u30aa\u30f3\u5168\u529b\u904b\u8ee2\u306b\u5165\u308a\u307e\u3057\u305f\u306e\u3067Windows Server Core\u3067SMB\u3092\u5efa\u3066\u3066\u3044\u304d\u307e\u3059\u3002\uff08\u4fd7&hellip; <span class=\"clear\"><\/span><a href=\"https:\/\/blog.yukiafronia.com\/?p=127\" class=\"more-link read-more\" rel=\"bookmark\"><span class=\"screen-reader-text\">Windows Server Core Edition build SMB (Detail) with PowerShelll<\/span><i class=\"fa fa-arrow-right\"><\/i> \u306e\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":128,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127"}],"version-history":[{"count":3,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions\/131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/media\/128"}],"wp:attachment":[{"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}