471,888 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,888 software developers and data experts.

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 1002
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
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.