使用PowerShell 在域内远程安装DFS

 

# 安装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}

 

 

posted @ 2019-07-31 09:26  听雨的人  阅读(381)  评论(0编辑  收藏  举报