from command line how are you doing it?
:/>cscript <scriptname>.vbs > dumpinfo2text.txt
"Solly" wrote:
[Quoted Text] > hello - i am studying wise scripting. I got the script in VBS to show all the > members of a group, but i cannot make it function in command line. I'm trying > to run a DSquery of the ldap server with the correct cn, ou, and dc > following. It keeps giving me an error that the path is incorrect, even > though i am copying it directly from my VBS script which seems to grab all > the correct info. Can anyone help me out with this? > > Also my VBS script looks like this: > > On Error Resume Next > > Set objGroup = GetObject _ > ("LDAP://******/cn=*****,ou=groups,ou=ORS,ou=***,ou=AD,dc=***,dc=**") > objGroup.GetInfo > > arrMemberOf = objGroup.GetEx("member") > > WScript.Echo "Members:" > For Each strMember in arrMemberOf > WScript.echo strMember > Next > > Can someone tell me how to dump that into a text file rather than echo it? > > Thanks >
|