Adding Ext attribute to bulk users with PowerShell

Ever had the need to bulk modify users Tel URI and add the “;ext=” attribute with the extension. Well here is a PowerSHell command to do just that.

get-csuser | ? {$_.lineuri} | ? {$_.lineuri -notlike "*;ext=*" } | % {$newlineuri = $_.lineuri + ';ext=' + $_.lineuri.substring($_.lineuri.length - 4); set-csuser $_.identity -lineuri $newlineuri}

That’s one line in PowerShell. It will get all the users in Lync that have a line URI set but where that line URI does not already have the “;ext=” syntax in it. Then, it will take the last four digits of the user’s line URI and use that to set a new line URI that has “;ext=XXXX” appended. (If you want to change the length of the extension, change the 4 to something else.)

Be careful with this command. It “should” be pretty safe. We can’t completely promise that suddenly adding “;ext=XXXX” to everyone’s line URI won’t cause an unexpected issue. Make sure to test in a lab first.

Thanks to Doug Lawty for the command and explanation of its use.

VoIPNorm

Seattle Event: UC + SIP Trunking: Keys to Successful Deployment

Join Level 3 Communications,Microsoft and Unify2 for a practical discussion

Unified communications (UC) is touted as a game changer: a way to bring collaborative applications together, lower costs, enable mobile workers and boost productivity. Come join me along with Level 3 and Unify2 to discuss how to avoid the biggest challenges faced by companies making the change to UC at Big Picture in Seattle.

RSVP today

Our agenda:

· Why UC? The challenges for enterprises

· Expert guidance on architecture options and requirements

· Tips on planning and implementing a SIP migration

· Best practices for deployment – avoid the landmines!

· Open discussion

Who should attend? This discussion is most relevant for director, manager, VP and SVP levels in Voice Infrastructure Architecture & Engineering or Applications Engineering, Voice Operations and Information Technology.

We’ll continue the discussion over a drinks and appetizers in the lounge.

About the speakers:

Josh Moormann, Senior Solutions Architect, Level 3 Communications

An engaging speaker, Josh has a knack for conveying the most essential elements of a UC strategy and finding the best deployment approach for each client’s unique situation. Josh was recruited to Level 3 in 2006 after establishing a reputation within the industry as a "go-to guy" for complex network architecture solutions.

Justin Stevens, Director, UC business transformation, Unify2

Justin is a Lync software developer and implementer with 16 years of experience in telecommunications. He brings a wealth of experience within Microsoft IT where he helped the company deploy more than 100,000 Lync voice seats worldwide and the transition of legacy technologies (voice, video and conferencing). He’s adept at development and recognition of ROI scenarios from VoIP evangelization to business transformation.

Chris Norman (that’s me), Lync Technical Solution Professional, Microsoft

Like you don’t already know who I am. You’re reading my blog already!

I hope to see you there.

VoIPNorm