All files are named according to the template "(UIN) user's full name.jpg".
// ---------------------------------------
// Script created by Alexey Pikurov
// 23.02.2017 14:55:41
// ---------------------------------------
var
sUsersList: string;
iUIN: integer;
begin
sUsersList := mGetUsersListByState(-2);
while length(sUsersList) > 0 do begin
iUIN := strtoint(GetNextSt(sUsersList, ','));
mExtractUserphoto(iUIN,
'c:\temp\photo\',
'(' + inttostr(iUIN) + ') ' + mGetUserAttribute(iUIN, 'DisplayName'));
end;
end.