Solved

Export Error from Lync Command Shell

Posted on 2014-02-24
1
437 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
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 …
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.

730 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