[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Powershell Script to Enable EnterpriseVoice

Posted on 2013-05-11
1
Medium Priority
?
311 Views
Last Modified: 2013-05-28
Howdy all,

I have just finished deploying the dialin conferencing piece of my MS Lync 2010 implementation.  I am excited to provide my users with this funtionality that they have been asking for.  The only issue I see is enabling all of them in an efficient manner.  I was hoping to write a brief powershell script to do the heavy lifting for me but I need a little guidance.  The users are already enabled for MS Lync but need to have two things done for each user.
Users Require:
1. EnterpriseVoiceEnabled = True
2. LineURI = tel:+11234567890 This must be unique for each user.

I figured I would start by getting a list of my users to begin with.  I wanted to gather the necessary information and export it to a file for use elsewhere.  The command below will export it to a file but i need it in a more usable format such as CSV.  I tried doing format-table but it cuts off all of the entries.  Any suggestions?

Get-CsUser | Select-Object DisplayName,SamAccountName,UserPr
incipalName,LastName,FirstName,WindowsEmailAddress,SipAddress,EnterpriseVoiceEna
bled,LineURI > c:Lyncusers.txt
0
Comment
Question by:bullfrog264
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
Vaseem Mohammed earned 2000 total points
ID: 39158669
Use 'export-csv' cmdlet to export in csv format instead of >.
Select-object displayname,....,....,.... | export-csv -path c:\userdetails.csv -notypeinformation
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question