VBScript: List members of Novell group and print them to a textfile.

‘List members of Novell group.vbs

strNovellGroup = “gultragenda”

‘ Main Prog
GetMembers

Sub GetMembers()
CommandLine = “z:\nlist.exe group = ” & strNovellGroup & ” SHOW MEMBER /S /R | sort /+9 >c:\output\” & strNovellGroup & “.txt”

Set WshShell = CreateObject(“WScript.Shell”)
WshShell.Run “CMD /C ” & CommandLine ‘run DOS commands
End Sub