token_remedie
Registered User.
- Local time
- Tomorrow, 06:29
- Joined
- Jul 7, 2011
- Messages
- 78
this loop isn't working:
it just cycles right through the servername's and doesn't do anything else. I've also tried a while inside the for loop. that just looped forever as far as I can tell.
is there a better way if doing this?
Code:
for each ServerName in ServerList
wscript.echo ServerName
q = """"
if rs.eof <> true and rs.bof <> true then
objcsv.writeline(q & rs("name") & q & "," & q & rs("operatingsystem") & q & _
"," & q & rs("operatingsystemservicepack") & _
q & "," & q & rs("operatingsystemversion") &_
q & "," & q & rs("distinguishedname") & q)
rs.movenext
else
end if
next
it just cycles right through the servername's and doesn't do anything else. I've also tried a while inside the for loop. that just looped forever as far as I can tell.
is there a better way if doing this?