List members local administrators group on local pc

Author Message
Jvuz

  • Total Posts : 5
  • Scores: 0
  • Reward points : 0
  • Joined: 2/20/2011
  • Status: offline
List members local administrators group on local pc Sunday, February 20, 2011 7:07 PM (permalink)
0
Hello,
 
my goal is to have this script to list the members of the local administrators group and write it in a reg file. Afterwards I'll need to launch the reg file (that won't we a problem). And the final step is to configure OCS-NG (our inventory program) to search for the registry key. Can someone help me with the script? I don't think it'll be a big script.
 
jvuz
 
#1
    Jvuz

    • Total Posts : 5
    • Scores: 0
    • Reward points : 0
    • Joined: 2/20/2011
    • Status: offline
    Re:List members local administrators group on local pc Monday, February 21, 2011 12:23 AM (permalink)
    0
    OK, this I already have:
     
    SET objShell=CreateObject("Wscript.Shell")
    DIM objExec, strResult
    SET objExec = objShell.Exec("hostname")
    strResult = objExec.StdOut.ReadAll
     
    With this code I get the name of the computer. How can i get the info about the members of the localgroup administrators?
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9