I want a script who get all users on my sharepoint farm to save information.

Do you have a simple way to get all users and loop foreach on them to get




Thanks !

Best regards.

1 Answer 1


It seems that you want to set user profile property to all users from your farm.

Microsoft provide ready made script for that.

Update User Profile

Hope it will helpful to you.

And also visit this which will give most of the scripts related to sharepoint and it is authentic as it is given by Microsoft itself

  • Your script is just for one collection, no all farm... Jun 14, 2015 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.