Tuesday 31 December 2013

How to assign multiple lync policies to bulk users

In order to assign multiple lync policies to bulk users, you can use lync power shell to achieve the same.

Prepare a text file with the user display names as shown below:

User1
User2
User3

Lets give the text file name as Users.txt

For eg. if you need to assign Conferencing Policy, Client Policy and External Access Policy to bulk users then you can run the below command

Open Lync Powershell

Get-Content -Path C:\Users.txt | Grant-CsConferencingPolicy -PolicyName "Conf" | Grant-CsClientPolicy -PolicyName "Client" | Grant-CsExternalAccessPolicy -PolicyName "External"

To view the assigned policies for the users, run the below command

Get-Content -Path C:\Users.txt | Get-CsUser | Select-Object SamAccountName, ConferencingPolicy, ClientPolicy, ExternalAccessPolicy | ft -wrap -autosize

Output will be like below:

SamAccountName ConferencingPolicy ClientPolicy        ExternalAccessPolicy
User1                  Conf                       Client                      External
User2                  Conf                       Client                      External
User3                  Conf                       Client                      External

Tuesday 24 December 2013

Taking ownership to this virtual machine failed

When you try to access the VM machine and you find the below error



Then you need to go to the location where your configuration files were stored, you will find EX01.vmx.lcx

Rename it to EX011.vmx.lcx

After renaming immediately three new files will be created with extensions vmdk.lck, vmx.lck and vmem.lck

Now you will be able to access virtual machine successfully :)

Wednesday 18 December 2013

How to get the count of mailboxes per database

In order to find the mailbox count per database. Follow the below steps:
  1. Login to Exchange Server
  2. Open Exchange Management Shell
  3. Run the command as shown below to get the desired output.



Monday 16 December 2013

Unable to create new users from BAS console

Issue

After upgrading to BES 5.0 SP4, administrators were unable to create new users from Blackberry Administration Console.

Work Around:

From BAS Console while creating new users, select the option "Add user from Company Directory" on create new user page.

To fix the issue permanently, perform the below steps:

  1. Start -> Run -> Type Regedit
  2. Navigate to HKEY_LOCAL_MACHINE\Software\WOW6432Node\ResearchInMotion\BlackberryEnterpriseServer\Agents
  3. Set the LDAPSearch value to 0
  4. Restart Blackberry Controller Service

Intermittent Network Issue on Blackberry Enterprise Server

Issue:

Users were unable to send/receive the emails from Blackberry Devices.

Solution:

To fix the issue I have done manual fail over to the other instance. After the movement users were able to send/receive the emails from Blackberry Devices.

While troubleshooting the server instance in which there is intermittent network issue, there are multiple NETLOGON events with event id 5719

This issue was related to DNS. To fix the issue, you need to run two command as mentioned below

ipconfig /flushdns
ipconfig /registerdns

Script to pull all the mailboxes created in 24 hrs on Exchange 2010

Get-Mailbox -ResultSize unlimited | Where {$_.WhenCreated -gt (Get-Date).AddDays(-1)}

If you need the details for 1 week, replace 1 with 7

Get-Mailbox -ResultSize unlimited | Where {$_.WhenCreated -gt (Get-Date).AddDays(-7)}

Administrator unable to modify a user account in Lync Control Panel

Error
Active Directory operation failed on "***.domain.com". You cannot retry this operation: 
"Insufficient access rights to perform this operation".
00002098: SecErr: DSID-0315088, problem 4003 (INSUFF ACCESS RIGHTS). data 0

Solution:
Go to Administrator user AD properties -> Security Tab -> Advance -> Permissions -> Check the box (Include inheritable permissions from this object's parent)