急!请高手帮忙--PDC的问题...
我的iis服务器(已经登陆域)与域服务器不在同一台机器上,并且我不清楚域服务器的任何信息(包括域名等),
请问如何用vbs或asp得到PDC信息,在vb中我是这样写是可以的的...
请问在vbs中如何实现
***********vb代码,引用了activeds.tlb在winnt\system32目录下
Public Function GetDNSHost() As String
Dim strNTHost As String
Dim WinntDNS As ActiveDs.WinNTSystemInfo
Set WinntDNS = New ActiveDs.WinNTSystemInfo
strNTHost = WinntDNS.PDC
Set WinntDNS = Nothing
GetDNSHost = strNTHost 'Left(strHost, InStr(strHost, ".") - 1)
End Function