Logo
English Russian German French Spanish Italian
contact usprivacy
   Support Forums
chart
• Adjust flexgrid cell
• Animation
• Centering form text
• Coffee machine
• Creating fileshares
• Creating shortcuts
• Custom buttons
• Directory browser
• Disable mouse events
• File search by ext
• File transfer
• File watcher
• Formatting flexgrid
• Get Content Type
• Get HTML source
• Get modem port
• HTTP proxy
• ipconfig
• Large file split/merge
• MAPI
• MCI Sound Player
• Menu with images
• MP3 normalizer
• Net Send
• Netstat 2000
• No duplicate entries
• Outlook Address Book
• Set font color
• Shapes
• SOAP test
• Text-to-image
• Text file viewer
• Text find/replace
• UPS component
• View NT groups
• Word template
• Writing DNS control
    • Using DNS control
• Writing SMTP control
    • Sending email
    • Mailing list
• Writing WhoIs control
    • Using WhoIs control
• View HTML source
OISV - Organization of Independent Software Vendors - Contributing Member
VB projects - View NT Groups

Description: shows list of groups/users on specified computer (for computer from other domain enter "domain_name/computer_name")
Minimum requirements: VB5, Windows NT/2000, ADSI
Download: source code
Screenshot:
View NT Groups (4 KB)
Project: Standard EXE
References: Active DS Type Library
Controls: opt (OptionButton), opt (OptionButton), cmdGet (CommandButton), lst (ListBox)
Code:
Option Explicit

Private Sub cmdGet_Click()
    Dim c As IADsComputer
    Dim v As IADs
    Dim sComputer As String
    Dim sFind As String
    
    On Error Resume Next
    lst.Clear
    If opt(0).Value Then sFind = "Group" Else sFind = "User"
    sComputer = InputBox("Enter the computer name", "Computer name")
    If Trim(sComputer) <> "" Then
        Set c = GetObject("WinNT://" & sComputer & ",computer")
        If Err <> 0 Then
            MsgBox "Computer not found", vbCritical, "Critical Error"
        Else
            For Each v In c
                If v.Class = sFind Then lst.AddItem v.Name
            Next
        End If
    Else
        MsgBox "Computer not found", vbCritical, "Critical Error"
    End If
End Sub

Copyright © 1996-2010 OstroSoft. All rights reserved. info@ostrosoft.com