I'm really new to windows scripting so it may seems stupid to some of you. Please bear with me.
If IsNull(objUser.Groups) then WriteoutputtoCSV(" ") Else temp = "" Set colGroups = objUser.Groups For Each objGroup in colGroups temp = temp+", "+objGroup.CN WriteoutputtoCSV(temp) End If
When I run this, it keep telling me
what did I do wrong? I tried to add parentheses after
Else and before
End If but it doesn't work.