Re: Cycle through variables
- From: "Tim Chin" <blank>
- Date: Fri, 9 Jun 2006 12:41:50 -0500
That worked perfectly, Richard - Thanks a ton for clearing that up. I have
one last question that is still related to this issue, though. I'm
currently pulling the domain in (as seen below as domain.com) statically.
Is there a way to pull that attribute from the user object (I did try the
userprincipalname, but that's not necessarily what I'm looking for) or
specify another variable to go to the sub also?
For example, the alert txt would show this:
1. smithj (domain1.com)
2. admin (domain1.com)
3. paul (domain2.com
etc.
And the echo csv would show this:
domain1.com,,smithj
domain1.com,,admin
domain2.com,,paul
Andy idea on how to fit this in or send to the sub-routine you came up with?
--
Tim
Sub EnumGroup(strGroup)
Set objGroup = GetObject ("LDAP://" & strGroup)
For each objMember in objGroup.Members
i = i + 1
AlertReportXX = i&". "&objMember.sAMAccountName&" (domain.com)"
objTextFile2.WriteLine(AlertReportXX)
EchoXX = "domain.com,,"&objMember.sAMAccountName
objTextFile.WriteLine(EchoXX)
Next
End Sub
.
- Follow-Ups:
- Re: Cycle through variables
- From: Richard Mueller
- Re: Cycle through variables
- From: Tim Chin
- Re: Cycle through variables
- References:
- Cycle through variables
- From: Tim Chin
- Re: Cycle through variables
- From: Richard Mueller
- Cycle through variables
- Prev by Date: Re: Help!!! Date operations
- Next by Date: ADODB.Recordset error '800a0c93' Operation is not allowed in this context.
- Previous by thread: Re: Cycle through variables
- Next by thread: Re: Cycle through variables
- Index(es):
Relevant Pages
|