Solved

Exchange 2010 Liciencing

Posted on 2014-02-26
2
216 Views
Last Modified: 2014-03-03
Hi All

I have an exchange 2010, 2008 server on which the EMC is showing that we need 3 enterprise cal licences, is there anyway to identify which accounts are requiring the 3 enterprise licences?

Thanks in advance
0
Comment
Question by:ncomper
2 Comments
 
LVL 17

Expert Comment

by:Lior Karasenti
ID: 39888666
0
 
LVL 9

Accepted Solution

by:
Red-King earned 500 total points
ID: 39889471
I've been playing around with this in powershell.
I've hacked up the script from this Technet page.

Save the content of the code box below in a file e.g. c:\tmp\CALstatus.ps1

Open the Exchange Management Shell and run the script like so to give a count of Enterprise features being used (I'm getting everybody using the Archive feature so that might need to be removed from the script);

[PS] C:\> c:\tmp\CALstatus.ps1

To get a list of users that make up those numbers use the ShowUsers switch e.g.

[PS] C:\> c:\tmp\CALstatus.ps1 -ShowUsers

Param (
	[switch]$ShowUsers = $false
	 )

$Users = @()

$UMUsers = 0
$ArchiveUsers = 0
$RetUsers = 0
$MCFUsers = 0
$ASUsers = 0

$AllMailboxes = Get-Mailbox

$AllMailboxes.Identity | foreach {
$Mailbox = Get-Mailbox $_

	if ($Mailbox.UMEnabled)
	{
		$Users += ($Mailbox.Identity).Name
		$UMUsers++
	}

	if ($Mailbox.ArchiveGuid -ne [System.Guid]::Empty)
	{
		$Users += ($Mailbox.Identity).Name
		$ArchiveUsers++
	}

	if ($Mailbox.RetentionPolicy -ne $null)
	{
		$Users += ($Mailbox.Identity).Name
		$RetUsers
	}

	if ($Mailbox.ManagedFolderMailboxPolicy -ne $null)
	{
		$ManagedFolderLinks = (Get-ManagedFolderMailboxPolicy $Mailbox.ManagedFolderMailboxPolicy).ManagedFolderLinks
		foreach ($FolderLink in $ManagedFolderLinks)
		{
			$ManagedFolder = Get-ManagedFolder $FolderLink

			if ($ManagedFolder.FolderType -eq "ManagedCustomFolder")
			{
				$Users += ($Mailbox.Identity).Name
				$MCFUsers++
			}
		}
	}

	$CASMailbox = Get-CASMailbox $_
	if ($CASMailbox.ActiveSyncEnabled -and ($CASMailbox.ActiveSyncMailboxPolicy -ne $null))
	{
		$ASPolicy = Get-ActiveSyncMailboxPolicy $CASMailbox.ActiveSyncMailboxPolicy

		if (($ASPolicy.AllowDesktopSync -eq $False) -or
		($ASPolicy.AllowStorageCard -eq $False) -or
		($ASPolicy.AllowCamera -eq $False) -or
		($ASPolicy.AllowTextMessaging -eq $False) -or
		($ASPolicy.AllowWiFi -eq $False) -or
		($ASPolicy.AllowBluetooth -ne "Allow") -or
		($ASPolicy.AllowIrDA -eq $False) -or
		($ASPolicy.AllowInternetSharing -eq $False) -or
		($ASPolicy.AllowRemoteDesktop -eq $False) -or
		($ASPolicy.AllowPOPIMAPEmail -eq $False) -or
		($ASPolicy.AllowConsumerEmail -eq $False) -or
		($ASPolicy.AllowBrowser -eq $False) -or
		($ASPolicy.AllowUnsignedApplications -eq $False) -or
		($ASPolicy.AllowUnsignedInstallationPackages -eq $False) -or
		($ASPolicy.ApprovedApplicationList -ne $null) -or
		($ASPolicy.UnapprovedInROMApplicationList -ne $null))
		{
			$Users += ($Mailbox.Identity).Name
			$ASUsers++
		}
	}
}

write-host "==============================" 
write-host "Exchange Feature Usage Report" 
write-host "==============================" 
write-host "" 
Write-Host "Unified Messaging User count: " $UMUsers
Write-Host "Archiving User count: " $ArchiveUsers
Write-Host "Retention User count: " $RetUsers
Write-Host "Managed Custom Folders User count: " $MCFUsers
Write-Host "Advanced Activesync User count: " $ASUsers


if($ShowUsers)
{
	write-host "==================================" 
	write-host "Exchange Enterprise Feature Users" 
	write-host "==================================" 
	Write-Host ""
	Write-Host "The User list follows"
	Write-Host ""
	$Users
}

Open in new window

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now