- Home
·
- Miscellaneous
·
- ADSI sample showing how to list all groups in a Windows 2000 AD domain or Windows NT4 domain. If do
ADSI sample showing how to list all groups in a Windows 2000 AD domain or Windows NT4 domain. If do
ADSI sample showing how to list all groups in a Windows 2000 AD domain or Windows NT4 domain. If domain is a computer, all groups of the local
Rate ADSI sample showing how to list all groups in a Windows 2000 AD domain or Windows NT4 domain. If do
(2(2 Vote))
' List all groups in a Windows 2000 AD domain or Windows NT4 domain. If domain
' is a computer, all groups of the local SAM database are displayed.
' Goto http://www.activxperts.com/activmonitor and click on ADSI Samples
' for more samples
Sub ListGroups( strDomain )
Set objComputer = GetObject("WinNT://" & strDomain )
objComputer.Filter = Array( "Group" )
For Each objGroup In objComputer
WScript.Echo "Name: " & objGroup.Name
Next
End Sub
' Main
Dim strDomain
Do
strDomain = inputbox( "Please enter a domainname", "Input" )
Loop until strDomain <> ""
ListGroups( strDomain )
WScript.Echo( vbCrlf & "For more samples, goto http://www.activxperts.com/activmonitor and click" )
WScript.Echo( "on ADSI" )
ADSI sample showing how to list all groups in a Windows 2000 AD domain or Windows NT4 domain. If do Comments
No comments yet — be the first to post one!
Post a Comment