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

x
?
Solved

Export Error from Lync Command Shell

Posted on 2014-02-24
1
Medium Priority
?
452 Views
Last Modified: 2014-02-24
Dear All,

i'm trying to use the below command to enable Lync for all my users, a lot of them enabled, but i'm getting some error for some users, the problem is, i can't read the error in powershell window since it's very big, i need to export the errors appear to a text file so i can read each error in details, i couldn't make this, i try ">C:\Lync\Error.txt" after the below command, Error.txt file created but it's empty, nothing on it, please help.

Get-CsAdUser -Filter {Enabled -ne $True} | Enable-CsUser -RegistrarPool "L-FE-01.Rhala.com" -SipAddressType EmailAddress -SipDomain Rhala.com
0
Comment
Question by:Rhala
[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 40

Accepted Solution

by:
Subsun earned 2000 total points
ID: 39882001
Simple method is to user the $error variable.. For example..
$error.clear()
Get-CsAdUser -Filter {Enabled -ne $True} | Enable-CsUser -RegistrarPool "L-FE-01.Rhala.com" -SipAddressType EmailAddress -SipDomain Rhala.com 
$error | Out-file c:\temp\test.log -Force

Open in new window

0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

649 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