How to Learn User’s Mailbox under Specific Organizational Unit on Exchange Server 2010 PowerShell

Actually this kind of scripts are useful for helpdesk. Because they are required to fix user’s problem and sometimes it is really hard to find a user in EMC if you have big environment

you can write scripts and save them in a folder in Exchange server and they can be used if required. you don’t have write each time same scripts for daily basis jobs.

open exchange server PowerShell and type this command

Get-Mailbox | Where-Object{$_.OrganizationalUnit -like ‘*Sydney*’}

Result;

Name                      Alias                ServerName       ProhibitSendQuota
—-                           —–                ———-               —————–
Administrator         Administrator    Server1                 unlimited

let’s go deeper and complex PowerShell command and to extend this command adding Database option

Continue reading “How to Learn User’s Mailbox under Specific Organizational Unit on Exchange Server 2010 PowerShell”

Advertisements

How to Learn Server Roles of Exchange server 2010 using PowerShell

Actually this kind of scripts are useful for helpdesk. Because they are required to fix user’s problem and sometimes it is really hard to find a user in EMC if you have big environment

you can write scripts and save them in a folder in Exchange server and they can be used if required. you don’t have write each time same scripts for daily basis jobs.

open new text document

image

and save it s3.ps1 and then open Exchange Server PowerShell and run this command

.s3.ps1 –server Server1

Result;

Retrieving info from server: Server1

Name       : Server1
Fqdn       : Server1.sonat.local
ServerRole : Mailbox, ClientAccess, UnifiedMessaging, HubTransport
Edition    : Enterprise

 

mailbox on server1

Name                                           ServerName                                     Database
—-                                                ———-                                             ——–
Administrator                                 server1                                              DB1

Sonat YAYLALI                                server1                                              DB1

How to List users on Specific Mailbox Server on Exchange Server 2010

Actually this kind of scripts are useful for helpdesk. Because they are required to fix user’s problem and sometimes it is really hard to find a user in EMC if you have big environment

you can write scripts and save them in a folder in Exchange server and they can be used if required. you don’t have write each time same scripts for daily basis jobs.

open new text document

image

and save it such as s2.ps1a and run it

PS C:UserssonatDesktop> .s2.ps1 –server server1

Result;

Retrieving info from server: Server1

Name                                    ServerName                              Database
—-                                          ———-                                    ——–
Administrator                            Server1                                   DB1
Sonat YAYLALI                           Server1                                  DB1

How to learn user’s database using PowerShell on Exchange Server 2010

Actually this kind of scripts are useful for helpdesk. Because they are required to fix user’s problem and sometimes it is really hard to find a user in EMC if you have big environment

you can write scripts and save them in a folder in Exchange server and they can be used if required. you don’t have write each time same scripts for daily basis jobs.

open new text document

image

when you save it, choose “All Files” in combo box and type name of file what you want with ps1 extension

image

When it is saved, let’s run it.

Open Windows PowerShell and go to folder that your files is saved into and run it for specific user. my file name is s1.ps1 and I will run it for administrator user

PS C:UserssonatDesktop> .s1.ps1 administrator

 

Result;

Retrieving info of administrator

Name                                                        Database
—-                                                              ——–
Administrator                                               DB1

How to create a Dynamic Distribution Group

it is really hard to managing groups for users. some of groups must be normal distribution group and some of them can be dynamic. Basically, we use dynamic groups for department distribution groups and branch distribution groups.

The best way of explaining dynamic group is giving examples.

For example you have two offices, Sydney and Melbourne, and each office has 50 users. When a user joins to team or leaves, you have to add or remove user groups. If you create a dynamic groups which has condition that is “If State is Sydney or Melbourne”, a new user will be added to a dynamic distribution group automatically according to state on its Active Directory account.

Continue reading “How to create a Dynamic Distribution Group”

How to Hide a user or Distribution Group from Exchange Address List

Hiding Distribution Group is always required from managers and sometimes hiding distribution group or user is a useful rather than restrict senders. Because people in companies are always changing and adding or removing users to restriction list is a manual job.

In this scenario, I have a distribution group which needs to be hidden from address list.

Open Microsoft Exchange Server management Console and go to

Microsoft Exchange On-Premises>

Recipient Configuration>

Distribution Group>

and choose your distribution group that you want customize and right click on it and open properties

Click Advanced Tab and select Hide group from Exchange address list

Continue reading “How to Hide a user or Distribution Group from Exchange Address List”

Assign a Moderator to a Distribution Group

Message moderation requires incoming messages to be reviewed by one or more moderators before delivery. Moderators can apply or reject incoming messages.

In this scenario, I have a distribution group which needs to be had a Moderator.

Open Microsoft Exchange Server management Console and go to

Microsoft Exchange On-Premises>

Recipient Configuration>

Distribution Group>

and choose your distribution group that you want customize and right click on it and open properties and click Mail Flow Setting

Choose Message Moderations

Continue reading “Assign a Moderator to a Distribution Group”

How to Restrict Senders to Send a Message to a Distribution Group

In this scenario, We have a distribution group and it accepts messages from all sender. I would to like reject messages from one user.

Open Microsoft Exchange Server management Console and go to

Microsoft Exchange On-Premises>

Recipient Configuration>

Distribution Group>

and choose your distribution group that you want customize and right click on it and open properties and click Mail Flow Setting

Open Message Delivery Restrictions

Continue reading “How to Restrict Senders to Send a Message to a Distribution Group”

How to Restrict Message Delivery to a Distribution Group on Exchange Server 2010

When you create an user or a distribution group which always has no message delivery restriction, you should adjust delivery setting if required.  Some distribution groups are created for public usage but some of them are created for limited or private usage.

In this scenario, I have a distribution group which needs to restricted.

Open Microsoft Exchange Server management Console and go to

Microsoft Exchange On-Premises>

Recipient Configuration>

Distribution Group>

and choose your distribution group that you want customize and right click on it and open properties and click Mail Flow Setting

Continue reading “How to Restrict Message Delivery to a Distribution Group on Exchange Server 2010”

Blog at WordPress.com.

Up ↑

%d bloggers like this: