Příspěvky

Disable Lync accounts for users disabled in AD

Obrázek
Hi all, few days ago I had to do some clean up tasks at one of our customer. Goal was to disable Lync accounts for users, that do not work for company anymore. It seems like a powershell mission. To get list of disabled AD accounts that still have enabled Lync you can use following line: Get -CsAdUser   -ResultSize   Unlimited |  Where-Object   {$_.UserAccountControl  -match "AccountDisabled"   -and   $_.Enabled  -eq   $true } |  Format-Table   Name,Enabled,SipAddress  -auto Then you can easily remove Lync account by using following line: Get -CsAdUser   -ResultSize   Unlimited |  Where-Object   {$_.UserAccountControl  -match "AccountDisabled"   -and   $_.Enabled} | Disable -CsUser

Copy Group Membership to another user

Obrázek
Hello Guys, I received a request to  copy group membership from one existing user to another one. If you need to create new user, then you can use Copy in Active Directory Users and Computers console. If you want to copy membership to an existing user, you can use PowerShell. To get actual group membership for user John.Doe you can use: get-aduser -identity John.Doe -properties memberof | select-object memberof -expandproperty memberof To copy groups to another existing user use: get-aduser -identity John.Doe -properties memberof | select-object memberof -expandproperty memberof | Add-AdGroupMember -Members Jane.Doe If you wanna know what groups were copied: get-aduser -identity Jane.Doe -properties memberof | select memberof -expandproperty memberof | Add-ADGroupMember -members John.Doe -PassThru You can also copy groupmembership to multiple users: get-aduser -identity Jane.Doe -properties memberof | select memberof -

Set up Auto Logon in Windows using PowerShell

Obrázek
Hello Guys, Did you ever felt the need to set up Auto logon to Windows Server or Workstation? Sometimes it is needed. Especialy in Internet Coffee's, or similar places. There is an old way to setup it using Regedit. But there is also way to use PowerShell to accomplish it. Take a look on two simple functions. This function are easy to use in you scripts. I am using it for building testing environement. All You need to do, is to set up $PlainTextAccount and $PlainTextPassword variables.

Lync 2013 Clear Persistent Chat Room Content

Obrázek
Hello Guys! In Lync 2013 we have an option delete all or partial content of Persistent Chat Room! This can be easily done by powershell cmdlet Clear-CsPersistentChatRoom. Detail description of that cmdlet can be found here: http://technet.microsoft.com/en-us/library/jj204976.aspx And now some examples: his example will remove all content before 1.1.2014 from PChatRoom: Clear-CsPersistentChatRoom -Identity "contoso.com\PChatRoom" -EndDate "1/1/2014" This example will remove all content before 1/1/2014 from all Persistech Chat Rooms: Get-CsPersistentChatRoom | Clear-CsPersistentChatRoom -EndDate "1/1/2014" -Confirm: $False This example will remove content older 180 days from all Persistech Chat Rooms: Get-CsPersistentChatRoom | Clear-CsPersistentChatRoom -EndDate ( [ DateTime ]:: today . AddDays( -180 )) -Confirm: $false

Lync 2013 Persistent Chat Service not starting

Obrázek
Today I had to installed Persistent Chat to our existing Lync 2013 Standart environement. Plan was use dedicated server for Persistent chat and second dedicated server for SQL Server 2012. Installation was simple as expected. After successfull installation Persistent Chat service could not start. Why? I checked Event Log and found two Events: Event ID 53553: The server is not compatible with the database at Data Source=SQL1.HELL.LOCAL;Initial Catalog=mgc;Integrated Security=SSPI Event ID 53503: Microsoft Lync Server 2013, Persistent Chat could not start due to the following exception:  at Microsoft.Rtc.Internal.Chat.Server.ServerCommon.Exceptions.StopServerException: Unexpected DB version. Problem was not in SQL server version. SQL server 2012 is supported and installation was successfull. Setup process also created necessary databases. Solution was install Lync updates using LyncServerUpdateInstaller.exe utility. Update utility can be downloaded from  http:/

Office 365 DirSync Synchronization Schedule

Obrázek
Default settings for DirSync synchronization frequency is three hours. This interval define, how often are changes made in your on-premise environement replicated to Office 365. In case you have an organization, that have smaller amount of users, you can change the frequency of the synchronization to replicate changes to Office 365. Logon to DirSync server. Open Notepad as Administrator From Notepad open file “ C:\Program Files\Windows Azure Active Directory Sync\Microsoft.Online,DirSync.Scheduler.exe.config “ Change the SyncTimeInterval Value to reduce the sync schedule. For example to reduce the time to every 15 minutes use following values: <add key=”SyncTimeInterval” value=”0:15:0″ /> Save file and close notepad Restart service Windows Azure Active Directory Sync Service Thats all.

Technical diagrams for Lync Server 2013

Obrázek
These diagrams provide visual representations of recommended solutions for Lync 2013. Posters provides architectural guidance for planning and deployment. The posters contains information about common components of Lync Server, terminology used when planning a deployment, new features, server roles, and an installation overview. Posters also helps to understand the capabilities and requirements of Lync 2013, Lync Phone, Lync Web App, Lync for Mac, and Lync Mobile. Download: http://technet.microsoft.com/en-us/library/dn594589.aspx