[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Export Error from Lync Command Shell

Posted on 2014-02-24
1
Medium Priority
?
458 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 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Popular third-party chat platforms like Slack, Discord, and Telegram are just a few of the many new productivity applications that are being hijacked by cybercriminals to create command-and-control (C&C) communications infrastructures for their malw…
The goal of the tutorial is to teach the user how to instant message and make a video call in Skype.
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…

873 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