Get-MailBox -Resultsize Unlimited | Where-Object {$_.ResourceType -eq "Room"} | Add-MailboxPermission -User Helpdesk -AccessRights FullAccess
Helpdesk - security group name.
Showing posts with label Microsoft Exchange. Show all posts
Showing posts with label Microsoft Exchange. Show all posts
Thursday, February 11, 2016
Tuesday, February 3, 2015
Powershell command to see all Exchange Hub Transport Queues in Org in one place
Get-ExchangeServer | ?{$_.serverrole -eq 'HubTransport'} | Get-Queue
Friday, February 14, 2014
How to get list of mailboxes for enabled users only
Task: Provide the list of mailboxes for only accounts that are enabled (excluding the mailboxes for disabled accounts). This is frequently required for any type of Exchange mailbox migration projects, when disabled mailboxes will not be migrated.
- Get the all mailboxes list - including disabled (distinguishedname only): in Exchange Management Console run following command:"Get-Mailbox -resultsize unlimited | select-object distinguishedname | export-csv c:\admin\dn_mailboxes_all.csv -notype"
- Get the list of distinguishednames of disabled accounts: using Quest ActiveRoles Management Shell: "Search-ADAccount -AccountDisabled | select-object distinguishedname | export-csv c:\admin\disabled-objects.csv -notype"
- So - now we have 2 spreadsheets, first has all mailboxes, second all disabled objects - use your favorite way to select only items that exist in person first spreadsheet, but not in second. I use Excel Pivot table: I combine both spreadsheets in one (simple copy/paste will work) and then I insert Pivot Table with 'count' option for that column... The lines that have count '2' exist in both files, therefore disabled, so I need only lines that have count '1'.
- Copy the ones that have count "1" (therefore either enabled objects or disabled non-user objects) to txt file (c:\admin\enabledobjects.txt in our case).
- In Exchange Management Console run following command: "get-content c:\admin\enabledobjects.txt | Get-Mailbox -resultsize unlimited | select-object displayname, Organizationalunit, UserPrincipalname, PrimarySMTPAddress, ServerName | export-csv c:\admin\mailboxes_enabled_users.csv -notype" (note that when you run the script, non-user objects will produce error, that is normal: non-user objects do not have a mailbox, therefore the resulting file will have correct information with only enabled user mailboxes).
Thursday, July 12, 2012
Exchange GRT backup failure (Netbackup) caused by name resolution
The most common problem with backup using Netbackup is name resolution. Servers/clients have to be resolvable by the computer name (not fqdn), which in multi-domain environment brings some challenges (servers have to be added to the hosts file on the client).
Most recent problem: Exchange GRT backup finishes with status 1 (ie. not good for single item restore), which was fixed by fixing the name resolution.
Subscribe to:
Posts (Atom)