by Anonymous (267 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 4th May 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
ADSI sample - retrieves all domains in the namespace. Written in VBScript, using ADSI.
' This script lists all domains in the namespace
' Goto http://www.activexperts.com/activmonitor and click on ADSI Samples
' for more samples
Sub ListDomains()
Dim objNameSpace
Dim Domain
Set objNameSpace = GetObject("WinNT:")
For Each objDomain In objNameSpace
WScript.Echo "Name: " & objDomain.Name
Next
End Sub
' Main
ListDomains()
WScript.Echo( vbCrlf & "For more samples, goto http://www.activexperts.com/activmonitor and click" )
WScript.Echo( "on ADSI samples" )
No comments have been posted about ADSI sample - retrieves all domains in the namespace. Written in VBScript, using ADSI.. Why not be the first to post a comment about ADSI sample - retrieves all domains in the namespace. Written in VBScript, using ADSI..