{"id":3306,"date":"2016-12-23T18:40:00","date_gmt":"2016-12-23T21:40:00","guid":{"rendered":"http:\/\/www.radians.com.ar\/blog\/?p=3306"},"modified":"2018-01-16T15:16:50","modified_gmt":"2018-01-16T18:16:50","slug":"windows-server-2016-instalando-y-configurando-nuestro-servidor-dfs-howto","status":"publish","type":"post","link":"https:\/\/www.radians.com.ar\/blog\/?p=3306","title":{"rendered":"Windows Server 2016, instalando y configurando nuestro servidor DFS {HowTo}"},"content":{"rendered":"<p align=\"justify\"><a href=\"http:\/\/www.radians.com.ar\/Articulos\/Images2016\/b404e96db74b_FD4F\/windows-server-2016.png\"><img loading=\"lazy\" decoding=\"async\" title=\"windows-server-2016\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; float: left; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 5px; display: inline; padding-right: 0px\" border=\"0\" alt=\"windows-server-2016\" src=\"http:\/\/www.radians.com.ar\/Articulos\/Images2016\/b404e96db74b_FD4F\/windows-server-2016_thumb.png\" width=\"244\" align=\"left\" height=\"184\" \/><\/a><\/p>\n<p align=\"justify\">Hoy vamos a ver como configurar el rol de DFS y como configurar una replicaci\u00f3n DFS-R todo por l\u00ednea de comando, tal como dijimos que har\u00edamos.<\/p>\n<p align=\"justify\">&#160;<\/p>\n<p>Ya hemos visto varias notas sobre DFS:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.radians.com.ar\/blog\/?p=3281\">Active Directory Federation Services (ADFS) en Windows Server 2016<\/a><\/li>\n<li><a href=\"http:\/\/www.radians.com.ar\/blog\/?p=3285\">Instalar y configurar el sistema de archivos distribuido (DFS) en Windows Server 2012 R2 {Parte1}<\/a><\/li>\n<li><a href=\"http:\/\/www.radians.com.ar\/blog\/?p=3297\">Instalar y configurar el sistema de archivos distribuido (DFS) en Windows Server 2012 R2 {Parte2}<\/a><\/li>\n<li><a href=\"http:\/\/www.radians.com.ar\/blog\/?p=3304\">DFS en Windows Server 2016, como agregar una carpeta a DFS-N y configurar su r\u00e9plica {Parte3} -HowTo-<\/a><\/li>\n<\/ul>\n<h2>Para instalar el rol<\/h2>\n<ul>\n<li>En al consola de <strong>Server Manager<\/strong>, hacemos clic en <strong>Dashboard<\/strong>, y luego hacemos clic en <strong>Add roles and features<\/strong>.<\/li>\n<li>Luego en la pagina <b>Before you begin<\/b> page, hacemos clic en <b>Next<\/b>.<\/li>\n<li>En la pagina <b>Select installation type<\/b>, seleccionamos <b>Role-based or feature-based installation<\/b> y hacemos clic en <b>Next.<\/b><\/li>\n<li>En la pagina <b>Select destination server<\/b>, selecionamos el servidor del pool de servidores y hacemos clic en <b>Next<\/b>.<\/li>\n<li>En la pagina <b>Select server roles page<\/b>, expandimos el item File and Storage Services, y luego expandimos File and iSCSI Services.<\/li>\n<li>Seleccionamos el check box <b>DFS Namespaces<\/b>, y en el pop-up box de Add Roles and Features, hacemos clic en Add Features.<\/li>\n<li>Seleccionamos el check box de <b>DFS Replication <\/b>y hacemos clic en <b>Next<\/b>.<\/li>\n<li>Luego en la pagina de <b>Features<\/b>, hacemos un clic en <b>Next.<\/b><\/li>\n<li>Para terminar en la pagina de<strong> Confirm installation selections<\/strong>, hacemos un clic en <b>Install<\/b>.<\/li>\n<\/ul>\n<h4>Tambi\u00e9n podemos hacer esto con powershel de la siguiente manera:<\/h4>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">Install-WindowsFeature -Name FS-DFS-Namespace,FS-DFS-Replication -IncludeManagementTools<\/font><\/p>\n<h4>Para habilitar el Autorecovery<\/h4>\n<p>Para habilitar el autorecovery, debemos modificar la siguiente entrada de la registry:<\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">Key: HKLM\\System\\CurrentControlSet\\Services\\DFSR\\Parameters      <br \/>Value: StopReplicationOnAutoRecovery       <br \/>Type: Dword       <br \/>Data: 0<\/font><\/p>\n<h4>Por l\u00ednea de comando:<\/h4>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">REG.EXE ADD HKLM\\SYSTEM\\CurrentControlSet\\Services\\DFSR\\Parameters \/v StopReplicationOnAutoRecovery \/t REG_DWORD \/d 0 \/f<\/font><\/p>\n<p>Ahora el Script para hacer todo en la consola de DFS.<\/p>\n<p>Con esto creamos los shares:<\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">New-SmbShare \u2013Name \u201cFileServerData&quot; -Path E:\\FileServerData \u2013Description \u201cNombreShare File Server Data&quot; -FullAccess Administrators,&quot;IT_Administrators&quot; -ChangeAccess &quot;NT AUTHORITY\\Authenticated Users&quot; -FolderEnumerationMode AccessBased -CachingMode None<\/font><\/p>\n<p>&#160;<\/p>\n<p>Y con esto hacemos la magia en la consola DFS:<\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">dfsutil root adddom \\\\ServerName1\\DFSNamespace V2     <br \/><\/font><font color=\"#ff0000\" face=\"OCR A Extended\">dfsutil target add \\\\ServerName2\\DFSNamespace<\/font><\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">Dfsutil property targetfailback enable <a href=\"file:\/\/\\\\ServerName1\\DFSNamespace\">\\\\ServerName1\\DFSNamespace<\/a>      <br \/><\/font><font color=\"#ff0000\" face=\"OCR A Extended\">DfsrAdmin RG New \/RgName:DFSNamespace     <br \/><\/font><font color=\"#ff0000\" face=\"OCR A Extended\"><\/font><\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">DfsrAdmin Member New \/RgName:DFSNamespace \/MemName:ServerName1     <br \/><\/font><font color=\"#ff0000\" face=\"OCR A Extended\">DfsrAdmin Member New \/RgName:DFSNamespace \/MemName:ServerName2<\/font><\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">DfsrAdmin Conn New \/RgName:DFSNamespace \/SendMem:ServerName1      <br \/>\/RecvMem:ServerName2 \/ConnEnabled:true<\/font><\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">DfsrAdmin Conn New \/RgName:DFSNamespace \/SendMem:ServerName2      <br \/>\/RecvMem:ServerName1 \/ConnEnabled:true<\/font><\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">dfsradmin RF New \/rgName:DFSNamespace \/RfName:FileServerData<\/font><\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">dfsradmin Membership Set \/RgName:DFSNamespace \/RfName:FileServerData \/MemName:ServerName1     <br \/> \/LocalPath:E:\\Data_Folder\\FileServerData \/MembershipEnabled:true      <br \/> \/IsPrimary:true<\/font><\/p>\n<p><font color=\"#ff0000\" face=\"OCR A Extended\">dfsradmin Membership Set \/RgName:DFSNamespace \/RfName:FileServerData \/MemName:ServerName2      <br \/>\/LocalPath:E:\\Data_Folder\\FileServerData \/MembershipEnabled:true      <br \/> \/IsPrimary:false<\/font><\/p>\n<p>Espero que les sea de utilidad e inter\u00e9s, y cualquier duda env\u00edenme un mail.<\/p>\n<p>Saludos, y felices fiestas. Roberto Di Lello<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hoy vamos a ver como configurar el rol de DFS y como configurar una replicaci\u00f3n&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4291,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[158,281],"tags":[324,215,243,290],"class_list":["post-3306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-server-2012","category-281","tag-dfs","tag-sbs-howto","tag-windows-server-2012-r2","tag-windows-server-2016"],"_links":{"self":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3306"}],"version-history":[{"count":1,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3306\/revisions"}],"predecessor-version":[{"id":3307,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3306\/revisions\/3307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=\/wp\/v2\/media\/4291"}],"wp:attachment":[{"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.radians.com.ar\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}