469,275 Members | 1,582 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Using Javascript to Manage Admins in the Adminstrators group

I've been able to track down several scripts for doing what I want in VB but I cannot find anything in javascript. The gist of what I'm trying to do is just remove a user from the administrators group.
The closest script I've found is VB which does it like this:
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators")

For Each objUser In objGroup.Members
If objUser.Name <> "Administrator" AND objUser.Name <> "Domain Admins" Then
Wscript.Echo objUser.Name
End If

If someone could help me convert this to javascript, I should be golden!
May 25 '07 #1
1 958
16,027 Expert Mod 8TB
Welcome to TSDN!

This is not possible in javascript.
May 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Randell D. | last post: by
8 posts views Thread by Titatoutati | last post: by
16 posts views Thread by Marcos de Lima Carlos | last post: by
20 posts views Thread by =?Utf-8?B?QnJpYW4gTmljaG9sc29u?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.