Thanks to some bug reports on the original post, I have now edited the Assigned Numbers script.
Hopefully, it will now give you a correct output of users with a lineURI.
I used this as an excuse to clean up the script, and sign it, so it can be run directly in your lab without interaction.
I have also tested and verified it in a Lync 2013 setup
The script has been moved to a new location, and can be found here