I need to use ADModify.NET to change few users home directory's. But still I am getting stuck with the search filter. I want to find all users where their samaccount name starts with "a" and matches a specific server, for instance, server1. The first part of the query to find samaccount names staring with a fine but its the homedirectory part I am stuck on. I always want to find all users homedirectory where it starts with the path: \\server1. You can also take a look at it below:
(&(sAMAccountName=a*)(homeDirectory=\\server1*))
Thanks for any help.
Bookmarks