tag:blogger.com,1999:blog-5987791209900104222.post4601828519545891906..comments2023-12-27T05:16:09.968+02:00Comments on $cript Fanatic: How to configure mail forwarding in Exchange 2007Shay Levyhttp://www.blogger.com/profile/14910279001063843963noreply@blogger.comBlogger50125tag:blogger.com,1999:blog-5987791209900104222.post-63565750908330257432012-05-29T18:02:04.979+02:002012-05-29T18:02:04.979+02:00This has saved me hours of work....
Thank you!This has saved me hours of work....<br />Thank you!bchildhttps://www.blogger.com/profile/00412263444710119112noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-33136795770860783922012-05-29T18:01:04.509+02:002012-05-29T18:01:04.509+02:00Thank you for this it has saved me hours of work a...Thank you for this it has saved me hours of work and the possible purchase of 3rd party software!bchildhttps://www.blogger.com/profile/00412263444710119112noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-26542373705977620812011-06-02T08:57:08.275+02:002011-06-02T08:57:08.275+02:00Fishy question :)
Anyway, create contact objects ...Fishy question :)<br /><br />Anyway, create contact objects for each external user and make them a member of a distribution group. Forward emails to the distribution group/Shay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-3874127775220172512011-06-01T22:12:26.653+02:002011-06-01T22:12:26.653+02:00Is there a way to forward all emails from one acco...Is there a way to forward all emails from one account (the boss) to two other accounts (his assistants)? I created a group and forwarded the emails to the group name but it only works for internal mail users not external. Any suggestions?argylemhttps://www.blogger.com/profile/02876071734078559484noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-9515856389368622752011-06-01T08:36:17.473+02:002011-06-01T08:36:17.473+02:00@ghouse
Send me an email to scriptolog at gmail d...@ghouse<br /><br />Send me an email to scriptolog at gmail dot comShay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-86460071628500052052011-06-01T08:33:52.622+02:002011-06-01T08:33:52.622+02:00Hi Shay,
I followed all your steps but still the ...Hi Shay,<br /><br />I followed all your steps but still the forwarding is not working on the mailbox. I have external contacts and i want to enable forwarder on the mailbox to those contacts. am getting the below error:<br /><br />WARNING: The command completed successfully but no settings of 'xyz\ou\abc user' have been modified.<br /><br />can you please help me with this.Ghousehttps://www.blogger.com/profile/08654571538455882361noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-68683407738321703402011-01-05T09:48:31.743+02:002011-01-05T09:48:31.743+02:00Exactly ;-)Exactly ;-)Shay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-23442534381068007032011-01-05T03:47:33.220+02:002011-01-05T03:47:33.220+02:00ahh... i should google before ask you.
-HiddenFr...ahh... i should google before ask you. <br /><br />-HiddenFromAddressListsEnabled $true<br /><br />Thanks!! :)boonhttps://www.blogger.com/profile/07156099363251060664noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-67950761130649087962011-01-05T03:45:23.502+02:002011-01-05T03:45:23.502+02:00Hi Shay, i've another question. Are we able to...Hi Shay, i've another question. Are we able to use cmdlets to hide the mailbox contact from GAL? Thanks!boonhttps://www.blogger.com/profile/07156099363251060664noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-27303101099088637742010-12-15T11:43:21.889+02:002010-12-15T11:43:21.889+02:00Awesome, thanks for the update!Awesome, thanks for the update!Shay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-84805523145754996732010-12-15T11:16:18.167+02:002010-12-15T11:16:18.167+02:00Hi Shay, Thanks for your advice, my script is work...Hi Shay, Thanks for your advice, my script is working perfectly now!<br />You save me a lots of headache!!<br /><br />Thanks again!!!boonhttps://www.blogger.com/profile/07156099363251060664noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-44510155155401577622010-12-15T11:16:05.806+02:002010-12-15T11:16:05.806+02:00Hi Shay, Thanks for your advice, my script is work...Hi Shay, Thanks for your advice, my script is working perfectly now!<br />You save me a lots of headache!!<br /><br />Thanks again!!!boonhttps://www.blogger.com/profile/07156099363251060664noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-10286593360981530412010-12-14T13:57:28.884+02:002010-12-14T13:57:28.884+02:00Cool, glad you could resolve it :)Cool, glad you could resolve it :)Shay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-57051220799331572112010-12-14T13:10:37.037+02:002010-12-14T13:10:37.037+02:00finally figuerd it out i have to use $_.MailAddres...finally figuerd it out i have to use $_.MailAddress instead of $_.ExternalSMTP<br /><br />Import-Csv l:\2000.csv | Foreach-Object{Get-Mailbox $_.DisplayName | Set-Mailbox -ForwardingAddress $_.MailAddress}<br /><br />thanks a looooooooot for you help....u saved me a lot of headache.Unknownhttps://www.blogger.com/profile/14530411992476530147noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-52713414047479625732010-12-14T13:04:50.672+02:002010-12-14T13:04:50.672+02:00it didnt worked. check all the users.it didnt worked. check all the users.Unknownhttps://www.blogger.com/profile/14530411992476530147noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-58701258070271170672010-12-14T12:48:39.170+02:002010-12-14T12:48:39.170+02:00OK, it probably worked (I guess you ran it more th...OK, it probably worked (I guess you ran it more than one time). Can you confirm that that users were updated with the external contact?Shay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-39069672340126014662010-12-14T12:47:09.727+02:002010-12-14T12:47:09.727+02:00below is the result
[PS] C:\Documents and Setting...below is the result<br /><br />[PS] C:\Documents and Settings\admin>Import-Csv l:\2000.csv |Foreach-Object{Get-<br />Mailbox -OrganizationalUnit 2000-2001 | Set-Mailbox -deliverToMailboxAndForward<br />$true -ForwardingAddress $_.ExternalSMTP}<br />WARNING: The command completed successfully but no settings of<br />'dom.edu/Students/2000-2001/Ahlam Baflah' have been modified.<br />WARNING: The command completed successfully but no settings of<br />'dom.edu/Students/2000-2001/Bayan Bin Mahfooz' have been modified.Unknownhttps://www.blogger.com/profile/14530411992476530147noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-16017010724793288382010-12-14T12:38:46.340+02:002010-12-14T12:38:46.340+02:00Let's take one step backwards. Did the followi...Let's take one step backwards. Did the following command worked for you?<br /><br />Import-Csv users.csv | Foreach-Object{<br />Get-Mailbox $_.DisplayName | Set-Mailbox -DeliverToMailboxAndForward $true -ForwardingAddress $_.ExternalSMTP <br />}Shay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-34509779508845275662010-12-14T12:10:05.747+02:002010-12-14T12:10:05.747+02:00i already have created contacts for every user i w...i already have created contacts for every user i wanted to forward email. so shall i delete those contacts and recreate them using this <br /><br />Import-Csv users.csv | Foreach-Object{<br />Get-Mailbox $_.DisplayName | Set-Mailbox -DeliverToMailboxAndForward $true -ForwardingAddress $_.ExternalSMTP -WhatIf<br />}Unknownhttps://www.blogger.com/profile/14530411992476530147noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-52585574085448579802010-12-14T11:48:54.403+02:002010-12-14T11:48:54.403+02:00There's no command. Let me explain, when you l...There's no command. Let me explain, when you loop over a csv file you are using the values for each user from the file (display name and external email), I already posted that command.<br /><br />When you get mailboxes from a specific OU (not a file) you have the user already but you don't have the value for the contact. So you need to supply that value in some way.<br /><br />The best solution would be using the csv file.Shay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-45245224418189531472010-12-14T11:33:04.658+02:002010-12-14T11:33:04.658+02:00Can you please post the command.
thanksCan you please post the command. <br /><br />thanksUnknownhttps://www.blogger.com/profile/14530411992476530147noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-9836323004810135102010-12-14T11:26:16.068+02:002010-12-14T11:26:16.068+02:00You need to loop on the mailboxes with foreach-obj...You need to loop on the mailboxes with foreach-object and inside of it use the $_.ExternalSMTP value. Outside the foreach scriptblock $_.ExternalSMTP is equel to $null.Shay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-26479240904251827782010-12-14T11:18:52.427+02:002010-12-14T11:18:52.427+02:00Below is the result. it didnt worked. m i doing so...Below is the result. it didnt worked. m i doing some thing worng?<br /><br />[PS] C:\Documents and Settings\admin>Get-Mailbox -OrganizationalUnit 2000-2001 |<br /> Set-Mailbox -ForwardingAddress $_.ExternalSMTP -WhatIf<br />What if: Setting mailbox "dom.edu/Students/2000-2001/Ahlam Baflah".<br />What if: Setting mailbox "dom.edu/Students/2000-2001/Bayan Bin Mahfooz<br />".<br />What if: Setting mailbox "dom.edu/Students/2000-2001/Asmaa Al-Turjumi"<br />.<br />What if: Setting mailbox "dom.edu/Students/2000-2001/Fajr ElBasree".Unknownhttps://www.blogger.com/profile/14530411992476530147noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-75622370621268132652010-12-14T11:06:43.846+02:002010-12-14T11:06:43.846+02:00To forward emails external only set the value of D...To forward emails external only set the value of DeliverToMailboxAndForward to $false (in case you set it $true before) otherwise just remove that parameter.<br /><br />To perform this action on an OU use the OrganizationalUnit parameter with the OU name (or DN):<br /><br />Get-Mailbox -OrganizationalUnit OUNameShay Levyhttps://www.blogger.com/profile/14910279001063843963noreply@blogger.comtag:blogger.com,1999:blog-5987791209900104222.post-82844606071808353622010-12-14T10:57:33.512+02:002010-12-14T10:57:33.512+02:00one more thing i dont want to deliver to mailbox a...one more thing i dont want to deliver to mailbox and forward. i just want to forward to external contact.<br /><br />thanksUnknownhttps://www.blogger.com/profile/14530411992476530147noreply@blogger.com