?
Solved

Export Error from Lync Command Shell

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
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…
Suggested Courses

752 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