HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 14th, 2003, 03:41 PM
dherron dherron is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 dherron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is there a list of objects somewhere

I've searched through these forums before posting but was unable to find what Im looking for.

Im very new to VB, let alone scripting with VB and need some direction.

Below is a script that I've managed to copy and paste from several different sources. It basically searches through a list of computers for any users that belong to the administrator or power users group.

My question is, and Im not sure Im stating it correctly, where can I find a list of things that I can search for? I think Im looking for a list of objects? In other words, objgroup.name will list the names of groups on a computer. What object would I look at if I wanted to find total physical memory? objmemory.totalphysicalmemory? I know thats not correct but thats what Im looking for. Are those objects? And can I get a list of them so I know what / where to look for specific information?

Sorry if the question seems stupid but Im very new to this type of scripting and Im not sure where to start. Ive got a reference book on the way.

Thanks!


Set objArgs = WScript.Arguments
Const ForReading = 1
Set objDictionary = CreateObject("Scripting.Dictionary")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile(objArgs(0), ForReading)
i = 0
Do While objTextFile.AtEndOfStream <> True
strNextLine = objTextFile.Readline
objDictionary.Add i, strNextLine
i = i + 1
Loop
For Each objItem in objDictionary
StrComputer = objDictionary.Item(objItem)


wscript.echo
wscript.echo
wscript.echo
wscript.echo strComputer
wscript.echo

Set colGroups = GetObject("WinNT://" & strComputer & "")
colGroups.Filter = Array("group")
For Each objGroup In colGroups
For Each objUser in objGroup.Members
If objgroup.name = ("Administrators") or objgroup.name = ("Power Users") Then
Wscript.Echo objuser.Name
End If

next
next
next

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Is there a list of objects somewhere


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT