• Distribution Group and members for Exchange

    Export all the Distribution group and all the members of it to a CSV file or Display all the Distribution group with its members in Exchange Mangement Shell Supports DYNAMIC Distribution group as well.
    Script Supports - Exchange 2007,2010,2013 & Office365
     

    - Export all the Distribution group and Distribution Group managers

    - Export all the Dynamic Distribution group and Dynamic Distribution Group managers as well

     
    DistributionGroupMemberReport.zip
    Distribution Group Member Report
    ----------------------------
    1.Display in Exchange Management Shell
    2.Export to CSV File
    3.Enter the Distribution Group name with Wild Card (Export)
    4.Enter the Distribution Group name with Wild Card (Display)
    Dynamic Distribution Group Member Report
    ----------------------------
    5.Display in Exchange Management Shell
    6.Export to CSV File
    7.Enter the Dynamic Distribution Group name with Wild Card (Export)
    8.Enter the Dynamic Group name with Wild Card (Display)
  • Exchange PowerShell notes

    Get all SMTP addresses in domain:

    Get-Recipient | Select Name -ExpandProperty EmailAddresses | Select Name,  SmtpAddress

    Get mailbox statistics (sort by MailBox Size):

    Get-mailbox | Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto

    Get mailbox statistics (sort by Last Logon Time):

    Get-mailbox | Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object LastLogonTime –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}},@{label=”Last Logon Time”;expression={$_.LastLogonTime}} -auto

    Get mailbox statistics (sort by Last Logon Time with DB):

    Get-mailbox | Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object LastLogonTime –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”DataBase”;expression={$_.Database}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}},@{label=”Last Logon Time”;expression={$_.LastLogonTime}} -auto

    Mailbox DB send quota:

    Get-mailboxdatabase | fl IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota
    Set-mailboxdatabase -IssueWarningQuota unlimited -ProhibitSendQuota unlimited -ProhibitSendReceiveQuota unlimited

    Transport and connectors quota:

    Get-TransportConfig | fl MaxReceiveSize, MaxSendSize
    Get-ReceiveConnector | fl maxMessageSize
    Get-SendConnector | fl maxmessagesize

    Personal send/receive quotas:

    get-mailbox |ft Name, Maxsendsize, maxreceivesize 

  • Changing the Windows PowerShell Script Execution Policy

    The Set-ExecutionPolicy cmdlet enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your computer. Windows PowerShell has four different execution policies:

    • Restricted - No scripts can be run. Windows PowerShell can be used only in interactive mode.

    • AllSigned - Only scripts signed by a trusted publisher can be run.

    • RemoteSigned - Downloaded scripts must be signed by a trusted publisher before they can be run.

    • Unrestricted - No restrictions; all Windows PowerShell scripts can be run.

    To assign a particular policy simply call Set-ExecutionPolicy followed by the appropriate policy name. For example, this command sets the execution policy to RemoteSigned:

    Set-ExecutionPolicy RemoteSigned
  • Add users photo to Exchange with powershell

    The photo must be 96×96 and less than 10k. Photoshop can do this

    Import-RecipientDataProperty -Identity “USERNAME” -Picture -FileData ([Byte[]]$(Get-Content -Path “C:\temp\PICTURENAME.jpg” -Encoding Byte -ReadCount 0))

  • Remove Public Folder on Exchange 2007

    Get-PublicFolderDatabase -server SBS2008 | Remove-PublicFolderDatabase Remove-PublicFolderDatabase : The public folder database "SBS2008\Second Storage Group\Public Folder Database" contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database. For detailed instructions about how to remove a public folder database, see http://go.microsoft.com/fwlink/?linkid=81409.

    Resolving:

    Opened up the Configuration portion of my domain  Went to CN=Services --> CN=Microsoft Exchange --> CN="my domain" --> CN=Administrative Groups --> CN=Exchange Administrative Group --> CN=Servers --> CN="my server name" --> CN=InformationStore

    Delete the Public Folder Entrance.

  • SharePoint - two-step patching process

    Since SharePoint Foundation 2010, patching SharePoint is a two-step process. The updated binaries are first installed and then PSCONFIG must be completed to update the SharePoint databases. 
    Without completing PSCONFIG, you might experience unexpected SharePoint search failures and all backups may stop working on the affected server.
     

    You can run the following commands to determine if you need to complete the update process with PSCONFIG:

    • Launch an elevated (Run as Administrator) SharePoint 2010 Management shell from start, All Programs, Microsoft SharePoint 2010 Products, SharePoint 2010 Management Shell.
    • Once the shell opens, type the following command followed by enter:  
      (get-spserver $env:computername).NeedsUpgrade

    In order to update the SharePoint databases, you must manually run the PSconfig utility. To run the utility:

    1. Open an Administrative command prompt.  
    2. Change directory to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN  
    3. Run PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures

     

  • OWA - Domain name when logging

    Change the OWA login from “Domain\UserName” to just “User Name”. This is useful when you have Single Domain Exchange environment.

    Find current logon format:

    Get-OwaVirtualDirectory -Identity "owa (default web site)"  |  Format-Table OwaVersion,Server,LogonFormat,DefaultDomain -Auto

    Set logom format:

    Set-OWAVirtualDirectory -Identity “owa (default web site)” -LogonFormat username -DefaultDomain “Your Domain Name”

    ISS Restart:  IISRESET /NOFORCE

AUST IT - Computer help out of hours, when you need it most.

Find out why we do it for less.

About

AUST IT will help you resolve any technical support issues you are facing onsite or remotely via remote desktop 24/7. More...

Contacts

Reservoir, Melbourne,
3073, VIC, Australia

Phone: 0422 348 882

This email address is being protected from spambots. You need JavaScript enabled to view it.

Sydney: 0481 837 077

Connect

Join us in social networks to be in touch.

Newsletter

Complete the form below, and we'll send you our emails with all the latest AUST IT news.