Active Directory does not offer any build in Dynamic Security groups, whereas Exchange does offer Dynamic Distribution lists. So to solve this problem you could run a PowerShell script based on users in an OU. The script below will scan one or more OU’s and add each user account to the AD Security group you… Read More »
Working in a larger Active Directory environment I occasionally got the error:
Get-ADGroupMember : The size limit for this request was exceeded
When trying to read all the members (recursively) of an AD Group. This was annoying since in the alternatives are limited especially when using the -recursive option. You could try with:
DSGET group -members | dsget user -samid
Get-ADGroup -properties Member | select-object -expandproperty member
However these don’t have the recursive option. And… Read More »
With older versions of Windows Server it was not possible to downgrade the domain and forest functional level once upgraded. However this has changed since Windows Server 2012R2, using PowerShell you can now downgrade the Domain and Forest functional level. To do so follow these steps: 1. Log on to the domain controller as domain… Read More »
As an IT consultant I often visit new customers and it is always good practice to just double check which DC’s are available in the organization, which sites they belong etc. To make it easy for myself I created a script that will get the: DC’s in the domain Uptime (in Hrs.) Site the DC… Read More »
When you have a large environment and you are running a command such as Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | select …. you might have seen this error:
Sending data to a remote command failed with the following error message:
The total data received from the remote client exceeded the allowed maximum. The allowed maximum is 524288000
There are a couple of solutions or workarounds. One solution could be to split the command and run it against each database instead and then… Read More »
When you receive event id 1017 LS File Transfer Agent Service you can easily check if this is a persistent error or an incident. The eventvwr message which is located in: “Applications and Services logs \ Lync server” will look something like this:
Log Name: Lync Server
Source: LS File Transfer Agent Service
Event ID: 1017
Task Category: (1121)
File transfer failed for some replica machines. Microsoft Lync Server 2013, File Transfer Agent will continuously attempt to replicate to these machines.
While this condition persists, configuration changes will not be delivered to these replica machines.
Replica file transfer failures:
server.domain.com: Access failed. (Can't watch \\server.domain.com\xds-replica\to-master.)
Cause: Possible issues with transferring files to the replicas listed above.
Check the accessibility of file shares or https web services listed above.
First open the Lync Server Management Shell and type the… Read More »