Pages

July 30, 2013

Multiple Exchange Accounts in Outlook 2010

Multiple Exchange Accounts in Outlook 2010
Outlook 2010 supports connecting to as many as three Exchange accounts from a single profile. Please refer below article for more information.

June 25, 2013

Access Exchange Server remotely via Powershell on Domain Joined and Non-Joined System

Accessing Exchange Server 2010 with Remote Powershell on Domain Joined System

To enable remote Shell for a user
Set-User Username -RemotePowerShellEnabled $True

 --Windows PowerShell scripts (if any) will be allowed to run on your compute--
 Set-ExecutionPolicy RemoteSigned

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http:///PowerShell/ -Authentication Kerberos -Credential $UserCredential

Import-PSSession $Session

Disconnects from the Exchange 2010 server
Remove-PSSession $Session

Accessing Exchange Server 2010 with Remote Powershell on Non-Domain Joined System

--Windows PowerShell scripts (if any) will be allowed to run on your compute--

Set-ExecutionPolicy RemoteSigned

--To get around with sethis and basically ignore all certificate issues all together, you can create a PSSessionOption object that disables these certificate validation checks--

$so = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck

--- Enable Basic Authentication on Powershell Virtual Directory ----

$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:///powershell -Authentication basic -Credential (Get-Credential) -SessionOption $so

Import-PSSession $session

Disconnects from the Exchange 2010 server
Remove-PSSession $Session

May 11, 2012

Few Exchange Server 2010 Powershell Commands

Check Calander permission

Get-MailboxFolderPermission -Identity username@domain.com:\calendar

Check Public folder client permission

Get-PublicFolder -Server servername -Identity "\finance\employeesalary" | Get-PublicFolderClientPermission | fl user, accessrights

Check Public folder client permission

Add-PublicFolderClientPermission servername -Identity "\finance\employeesalary"  -User "UserDisplayName" -AccessRights Reviewer

How to see DiskSpace :-

get-wmiobject -computername servername -class win32_logicaldisk -filter "drivetype=3" | ft DeviceID, freespace, size

Check Mailbox Count
get-mailbox -database databasename | measure-object | select count

Group Members
Get-DistributionGroup "groupname" | Get-DistributionGroupMember

Duplicate SMTP Address
proxyaddresses=smtp:username@domain.com

Mailbox Size with Users Email ID

Get-Mailbox –Database databasename Select-Object name,primarysmtpaddress,DisplayName,Database,@{n="Size(MB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize.value.toMB()}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount}}

Check Backup Status
Get-MailboxDatabase -Server servername -Status | ft Identity, lastfullbackup, lastincrementalbackup

Check Full mailbox Permission on a Mailbox

get-mailboxpermission -identity mailboxname | where-object {$_.accessrights -eq "fullaccess"} | ft user

See all objects of a forest 


Check Mail Queue greater than 5 on all HUB Servers
Get-ExchangeServer | where {$_.isHubTransportServer -eq $true} | get-queue | where {$_.MessageCount -gt 5} |measure-object MessageCount –max

Check Current State of VSS

VSSADMIN LIST WRITERS

Check Status of Cluster Nodes

CLUSTER NODE /STATUS

Check Quorum Drive of a DAG

Get-DatabaseAvailabilityGroup dagname | fl *witness*

How to check Non IPM Subtree of Exchange 2003 (System Public Folder)