Get-DfsrState

Get-DfsrState

Gets the DFS Replication state for a member.

语法

Parameter Set: Default
Get-DfsrState [[-ComputerName] <String> ] [ <CommonParameters>]

详细说明

The Get-DfsrState cmdlet gets the overall DFS Replication state for a computer in regard to its replication group partners. The cmdlet returns both inbound and outbound file replication information, such as files currently replicating and files immediately queued to replicate next.

参数

-ComputerName<String>

Specifies an array of names of computers. The cmdlet adds these computers to the replication group specified by the GroupName parameter. You can use a comma separated list and the wildcard character (*).

别名

Member,Mem

是否为必需?

false

位置?

1

默认值

[local computer]

是否接受管道输入?

True (ByValue, ByPropertyName)

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

  • string

输出

输出类型是 cmdlet 所发出对象的类型。

  • microsoft.distributedfilesystemreplication.dfsrupdate

示例

Example 1: Get the DFS Replication state for a member

This command gets the list of files currently replicating or queued inbound and outbound from the computer named SRV01.

PS C:\> Get-DfsrState -ComputerName "SRV01" | Format-Table filename,updatestate,inbound,source* -auto -wrap

相关主题

Get-DfsReplicationGroup