回复 5# uranus12 - #Check the Replication with Repadmin
- $usedate = Get-Date -Format "yyyyMMddHHmmss"
- $filepath = "C:\rep\show_$usedate.csv"
- Invoke-Command -ComputerName DC07 -ScriptBlock { Repadmin /showrepl * "DC=hll,DC=net" /csv >$args[0] } -ArgumentList @($filepath)
复制代码 保存到DC07- #Check the Replication with Repadmin
- $usedate = Get-Date -Format "yyyyMMddHHmmss"
- $filepath = "C:\rep\show_$usedate.csv"
- Invoke-Command -ComputerName DC07 -ScriptBlock { Repadmin /showrepl * "DC=hll,DC=net" /csv } | Set-Content -Path $filepath
复制代码 保存到本地 |