Exchange 2007 - Schedule to Send/Receive
Hi to all How Do I make some users to use exchange server 2007 to send / receive for specific hours during the day. These users have Microsoft Outlook for Desktop and Iphone to access their emails. I was thinking on blocking access from Active Directory to Outlook, but They still have the iphone, that's why I have to done this on Exchange Server. Best Regards and thanks for your time and clues
July 26th, 2012 1:39pm

You can use powershell to script to disable mailbox features, mapi, owa, activesync then run a scheduled task to disable and renable at the times you want. James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2012 1:44pm

I appreciate your response. Do you know where I can find an example of this, so I can change it with our information. Once again thanks
July 26th, 2012 1:49pm

1. open notepad and save the below as disableexchange.ps1 import-csv c:\scripts\users.csv | foreach-object {Set-CASMailbox $_.alias -ActivesyncEnabled:$false -owaenabled:$false -mapienabled:$false} open notepad and save the below as enableexchange.ps1 import-csv c:\scripts\users.csv | foreach-object {Set-CASMailbox $_.alias -ActivesyncEnabled:$true -owaenabled:$true -mapienabled:$true} 2. open notepad and save as users.csv alias bjohnson kadams 3. Open task scheduler a. create a new task and start a new program powershell.exe c:\scripts\disableexchange.ps1 schedule the job to start at whatever time you want b. create a new task and start a new program powershell.exe c:\scripts\enableexchange.ps1 If this is the first time running powershell scripts you may have to set-executionpolicy unrestricted Also you can disable pop and imap left those out.James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2012 4:07pm

Great !!! Thanks I will try this up. Have a nice one.
July 27th, 2012 10:02am

Hi Janestechman Well I followed your instructions and I got the following message C:\>powershell.exe c:\scripts\disableexchange.ps1 The term 'Set-CASMailbox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\scripts\disableexchange.ps1:1 char:65 + import-csv c:\scripts\users.csv | foreach-object {Set-CASMailbox <<<< $_.ali as -ActivesyncEnabled:$false -owaenabled:$false -mapienabled:$false} + CategoryInfo : ObjectNotFound: (Set-CASMailbox:String) [], Comm andNotFoundException + FullyQualifiedErrorId : CommandNotFoundException C:\> Any idea about this .. =) thanks Regards
Free Windows Admin Tool Kit Click here and download it now
July 27th, 2012 10:40am

My bad you need to use exchange powershell example below just update it to match yours. powershell.exe -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; c:\Scripts\MoveMailboxes.ps1"James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
July 27th, 2012 10:52am

Ok. It did change features from Enable to Disable, but people from list, still can send and receive emails .. =\ How could this be possible ..?
Free Windows Admin Tool Kit Click here and download it now
July 27th, 2012 1:05pm

protocol restrictions are cached by the is store it can take 2 hours, however in your cache you may want to reduce that time so it takes affect quicker. Mailbox Cache Age Limit has been set http://technet.microsoft.com/en-us/library/aa998523(v=exchg.80).aspx James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
July 27th, 2012 1:36pm

DS cache, it could take some time to take affect.James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
July 27th, 2012 1:37pm

protocol restrictions are cached by the is store it can take 2 hours, however in your cache you may want to reduce that time so it takes affect quicker. Mailbox Cache Age Limit has been set http://technet.microsoft.com/en-us/library/aa998523(v=exchg.80).aspx James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
July 27th, 2012 1:45pm

Ok I got ya ..so let's say that I could just schedule the tasks with two hours difference.
Free Windows Admin Tool Kit Click here and download it now
July 27th, 2012 3:26pm

Hi Jamestechman .. Guess what !! I have done everything and still can get and send email .. =\ I have reduced the age time to 20 minutes and still. only on iphone get the message Cannot Get Mail ..which is ok because all the features are disabled, but under Microsoft Outlook 2007/2010 did not. Am I missing something here ..? thanks anyway I really appreciate your time and help.
July 31st, 2012 11:28am

Does it eventually take affect by 2hrs? I have read that the cache age limit doesn't not work for certain access. James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
July 31st, 2012 1:13pm

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

Other recent topics Other recent topics