Solved

Export Error from Lync Command Shell

Posted on 2014-02-24
1
429 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
1 Comment
 
LVL 40

Accepted Solution

by:
Subsun earned 500 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
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…
The goal of the tutorial is to teach the user how to instant message and make a video call in Skype.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now