# 安装DFS 命名空间、DFS 管理工具、DFS 复制
# author:lttr <www.cnblogs.com/GoCircle>
# date:2019-08-09 # eg. # setupdfs.ps1 -servers ("WIN01","WIN02") [CmdletBinding()] param ( # DFS成员列表 [Parameter(Mandatory=$true,Position=0)][String[]]$servers ) foreach ($server in $servers) {Install-WindowsFeature -Name "FS-DFS-Namespace" , "RSAT-DFS-Mgmt-Con" , "FS-DFS-Replication" –IncludeManagementTools –ComputerName $server}