Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: Windows Scripts and Batch Files .: VB Script to GET Domain membership information

VB Script to GET Domain membership information

Set oResults=oSvc.ExecQuery _

            ("Select * from win32_ComputerSystem")

for each oInstance in oResults

 

            s=oInstance.Domain

'            wscript.echo oInstance.Domain

next

 

s=s & vbTAB & sServer

 

sQuery="Select * from win32_NetworkAdapterConfiguration where IPEnabled=True"

Set oResults=oSvc.ExecQuery(sQuery,,0)

 

'wscript.echo sQuery


How helpful was this article to you?

Related Articles

article VBS Script To Send All AD Domain Controllers Disk Space Information To Excel
This VBS script will write all the Active...

(No rating)  4-21-2008    Views: 178   
article VB Script to add NEW DNS IP address information
sDNSServers =...

(No rating)  3-24-2008    Views: 161   
article VB Script to Verify the Server name is reachable - if not, log information to the logfile
If err.number<>0 Then ...

(No rating)  3-24-2008    Views: 123   

User Comments

Add Comment
No comments have been posted.