Win32_PerfRawData_FileReplicaConn powershell sample code
The foundations for Manageability in Windows is Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself. The Win32_PerfRawData_FileReplicaConn WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
$strComputer = "." $objWMi = get-wmiobject -computername localhost -Namespace root\CIMV2 -Query "Select * from Win32_PerfRawData_FileReplicaConn_FileReplicaConn" foreach ($obj in $objWmi) { write-host "Authentications:" $obj.Authentications write-host "AuthenticationsinError:" $obj.AuthenticationsinError write-host "Bindings:" $obj.Bindings write-host "BindingsinError:" $obj.BindingsinError write-host "Caption:" $obj.Caption write-host "CommunicationTimeouts:" $obj.CommunicationTimeouts write-host "Description:" $obj.Description write-host "FetchBlocksReceived:" $obj.FetchBlocksReceived write-host "FetchBlocksReceivedinBytes:" $obj.FetchBlocksReceivedinBytes write-host "FetchBlocksSent:" $obj.FetchBlocksSent write-host "FetchBlocksSentinBytes:" $obj.FetchBlocksSentinBytes write-host "FetchRequestsReceived:" $obj.FetchRequestsReceived write-host "FetchRequestsSent:" $obj.FetchRequestsSent write-host "Frequency_Object:" $obj.Frequency_Object write-host "Frequency_PerfTime:" $obj.Frequency_PerfTime write-host "Frequency_Sys100NS:" $obj.Frequency_Sys100NS write-host "InboundChangeOrdersDampened:" $obj.InboundChangeOrdersDampened write-host "JoinNotificationsReceived:" $obj.JoinNotificationsReceived write-host "JoinNotificationsSent:" $obj.JoinNotificationsSent write-host "Joins:" $obj.Joins write-host "LocalChangeOrdersSent:" $obj.LocalChangeOrdersSent write-host "LocalChangeOrdersSentAtJoin:" $obj.LocalChangeOrdersSentAtJoin write-host "Name:" $obj.Name write-host "OutboundChangeOrdersDampened:" $obj.OutboundChangeOrdersDampened write-host "PacketsSent:" $obj.PacketsSent write-host "PacketsSentinBytes:" $obj.PacketsSentinBytes write-host "PacketsSentinError:" $obj.PacketsSentinError write-host "RemoteChangeOrdersReceived:" $obj.RemoteChangeOrdersReceived write-host "RemoteChangeOrdersSent:" $obj.RemoteChangeOrdersSent write-host "Timestamp_Object:" $obj.Timestamp_Object write-host "Timestamp_PerfTime:" $obj.Timestamp_PerfTime write-host "Timestamp_Sys100NS:" $obj.Timestamp_Sys100NS write-host "Unjoins:" $obj.Unjoins write-host write-host "########" write-host }