Disable POP and SMTP
Hello I am using Exchange 2007 in my environment. POP and SMTP are allowed. I have 1500 Mailbox in the domain; I want to disable POP and SMTP for all the users except a few. Please let me know if there is anything we can do disable POP and SMTP for those users. Thanks
July 6th, 2010 12:03pm

Hi Deep , Try this please To disable POP3 for all users with mailboxes on exchange 2007 (only this was executed this time; probably it works in a mixed environment too) you need to execute following command: Get-CASMailbox | Set-CASMailbox -PopEnabled $False In the same way the script can be executed to enable/disable: OWA Get-CASMailbox | Set-CASMailbox -OWAEnabled $False ActiveSync Get-CASMailbox | Set-CASMailbox -ActiveSyncEnabled $False IMAP Get-CASMailbox | Set-CASMailbox -IMAPEnabled $False MAPI Get-CASMailbox | Set-CASMailbox -MAPIEnabled $False After that enable POP3 on those users which you want to enable. I hope this will solve your problem. Regards. Shafaquat Ali.M.C.I.T.P Exchange 2007/2010, M.C.I.T.P Windows Server 2008, M.C.T.S OCS Server 2007 R2
Free Windows Admin Tool Kit Click here and download it now
July 6th, 2010 12:21pm

Hello I am using Exchange 2007 in my environment. POP and SMTP are allowed. I have 1500 Mailbox in the domain; I want to disable POP and SMTP for all the users except a few. Please let me know if there is anything we can do disable POP and SMTP for those users. Thanks 1. You can first disable thes protocols for all the users on your servers using the command provide by Shafaquat with little change Get-Mailbox -ResultSize Unlimited | Set-CASMailbox -PopEnabled $False -ResultSize Unlimited is needed becoz you have more than 1000 users. 2. Now you have to enable these protocols fors few users, so you have few ways to do this. a. Put all these users in an OrganizationalUnit and then run this command Get-Mailbox -ResultSize Unlimited -OrganizationalUnit "YourADDomain.com\YourOU" | Set-CASMailbox -PopEnabled $true b. You can put all the users' primary smtp addresses in a text file, say users.txt, one email address in a row, and then run following command Get-Content "C:\users.txt" |Get-Mailbox | foreach{ Set-CASMailbox $_.Identity -PopEnabled $true} Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
July 6th, 2010 1:24pm

thanks a lot for your response guys. Can i run this on OU basis in AD?
Free Windows Admin Tool Kit Click here and download it now
July 9th, 2010 9:01am

thanks a lot for your response guys. Can i run this on OU basis in AD? Yes, in my last post i posted this command, which u can use to set/reset a setting for mailboxes of an OU: Get-Mailbox -ResultSize Unlimited -OrganizationalUnit "YourADDomain.com\YourOU" | Set-CASMailbox -PopEnabled $true Replace this "YourADDomain.com\YourOU" with the canonical name of your OU. Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
July 9th, 2010 10:39am

Agreed with Laeeq. Regards. Shafaquat Ali.M.C.I.T.P Exchange 2007/2010, M.C.I.T.P Windows Server 2008, M.C.T.S OCS Server 2007 R2, Phone: +923008210320
Free Windows Admin Tool Kit Click here and download it now
July 9th, 2010 10:42am

Is there a way to disable Outlook Anywhere for some users?
October 21st, 2010 2:02am

Is there a way to disable Outlook Anywhere for some users? Hi, yes, u can disable OAW using Set-CASMailbox command. For a single user: Set-CASMailbox -Identity user@domain.com -MAPIBlockOutlookRpcHttp $true: To disable OAW for all users in an OU, you can use: Get-Mailbox -ResultSize Unlimited -OrganizationalUnit "YourADDomain.com\YourOU" | Set-CASMailbox -MAPIBlockOutlookRpcHttp $true Plz have a look into this doc for more details. http://technet.microsoft.com/en-us/library/bb123513(EXCHG.80).aspx Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
October 22nd, 2010 8:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics