If objRecordsetEOF Then WscriptEcho No user account(s) found with the specified criteria Else WscriptEcho User account(s) with the specified criteria: While Not objRecordsetEOF WscriptEcho objRecordsetFields(sAMAccountName) & : & _ objRecordsetFields(profilePath) objRecordsetMoveNext WEnd End If WScriptEcho

Refresh record set to view new profile path Set objRecordSet = objCommandExecute

WScriptEcho User account(s) with the new target data: While Not objRecordsetEOFWScriptEcho objRecordSetFields(profilePath) If objRecordSetFields(profilePath) <> Then WscriptEcho objRecordsetFields(sAMAccountName) & : & _ objRecordsetFields(profilePath) End If objRecordsetMoveNext WEnd