Better to match on userprincipalname, since that's usually unique ________________________________________ From: [email protected] [[email protected]] on behalf of Michael Leone [[email protected]] Sent: Tuesday, August 04, 2015 12:19 PM To: [email protected] Subject: Re: [powershell] Confused about -Like comparison
On Tue, Aug 4, 2015 at 12:10 PM, Michael Leone <[email protected]> wrote: > On Tue, Aug 4, 2015 at 12:04 PM, Jim Robertson > <[email protected]> wrote: >> I'm not sure I would approach the problem this way for a whole list of >> users. I have run across too many instances of people with either identical >> names, or variations that are very close. It would be really easy to have a >> false positive. For example, the names Jon, and John could easily be >> confused unless you can use a unique attribute in both lists to control the >> comparison. We also have several instances with users that have the same >> first name and last name, and a pair with the same first name, middle >> initial and last name. Which makes using names for a match unreliable. > > True that. But sometimes you have to work with what you have ... I've asked if they can give me the list, using email address as the unique identifier. Hopefully they will be able to do that. It will make our lives much easier. They're supposed to have the same email addresses we enter in AD in their system (it's a PeopleSoft system that they use for HR). ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1 ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1
