Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Monitor  Active  Directory  Replication  

 Content of Monitor Active Directory Replication.vbs
MD5 Hash: F56F0EC8AD602BDBDD09BB0D2CC54E31
' Description: Returns a list of pending replication jobs on a domain controller.


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\MicrosoftActiveDirectory")

Set colReplicationOperations = objWMIService.ExecQuery _
("Select * from MSAD_ReplPendingOp")

If colReplicationOperations.Count = 0 Then
Wscript.Echo "There are no replication jobs pending."
Wscript.Quit
Else
For each objReplicationJob in colReplicationOperations
Wscript.Echo "Serial number: " & objReplicationJob.SerialNumber
Wscript.Echo "Time in queue: " & objReplicationJob.TimeEnqueued
Wscript.Echo "DSA DN: " & objReplicationJob.DsaDN
Wscript.Echo "DSA address: " & objReplicationJob.DsaAddress
Wscript.Echo "Naming context DN: " & objReplicationJob.NamingContextDn
Next
End If

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a