Set oSI = CreateObject(“ADSystemInfo”)
tArray = split(oSI.PDCRoleOwner,”,CN=”)
strPDC = tArray(1)
WScript.Echo strPDC
"Yeah. I wrote a script that will do that."
Set oSI = CreateObject(“ADSystemInfo”)
tArray = split(oSI.PDCRoleOwner,”,CN=”)
strPDC = tArray(1)
WScript.Echo strPDC