I need help converting this too loop statements below to jscript:
strComputer = "."
Set colGroups = GetObject("WinNT://" & strComputer & "")
For Each objGroup In colGroups
Wscript.Echo objGroup.Name
For Each objUser in objGroup.Members
Wscript.Echo vbTab & objUser.Name
Next
Next
--------------------------------------------
var colGroups = GetObject("WinNT://");
var enumItems = new Enumerator(colGroups);
For (; !enumItems.atEnd(); enumItems.moveNext()){
Wscript.Echo (+objGroup.Name);
var enumItems = new Enumerator(Members);
For (; !enumItems.atEnd(); enumItems.moveNext()){
For( ){
Wscript.Echo (+objUser.Name);
}
}
Any help would be much appreciated!
Thank You
strComputer = "."
Set colGroups = GetObject("WinNT://" & strComputer & "")
For Each objGroup In colGroups
Wscript.Echo objGroup.Name
For Each objUser in objGroup.Members
Wscript.Echo vbTab & objUser.Name
Next
Next
--------------------------------------------
var colGroups = GetObject("WinNT://");
var enumItems = new Enumerator(colGroups);
For (; !enumItems.atEnd(); enumItems.moveNext()){
Wscript.Echo (+objGroup.Name);
var enumItems = new Enumerator(Members);
For (; !enumItems.atEnd(); enumItems.moveNext()){
For( ){
Wscript.Echo (+objUser.Name);
}
}
Any help would be much appreciated!
Thank You