<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PowerShell for Exchange</title><link>http://powershell.com/cs/forums/203.aspx</link><description>Moderated by PowerShell MVP &lt;a href="http://powershell.com/cs/content/experts.aspx#shay-levy"&gt;Shay Levy&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Move Mailbox</title><link>http://powershell.com/cs/forums/thread/24402.aspx</link><pubDate>Wed, 19 Jun 2013 15:59:15 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:24402</guid><dc:creator>guaro5555</dc:creator><slash:comments>1</slash:comments><comments>http://powershell.com/cs/forums/thread/24402.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=24402</wfw:commentRss><description>&lt;p&gt;HI&lt;/p&gt;
&lt;p&gt;I ve&lt;b&gt;ry new to powershell, so go&lt;/b&gt;&amp;nbsp;easy on me&lt;/p&gt;
&lt;p&gt;I need to move mailbox from one exchange to another exchange and I would like to know if this can be done by PS script&lt;/p&gt;
&lt;p&gt;I would like to have a txt file read by the script and go through all the alias on the txt file and perform the move as it read.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;would you please point me to the right direction or let me know if you have used a script like this in the past.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Message Age and Count Report Needed </title><link>http://powershell.com/cs/forums/thread/24396.aspx</link><pubDate>Wed, 19 Jun 2013 13:54:05 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:24396</guid><dc:creator>cking@unitedregional.org</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/24396.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=24396</wfw:commentRss><description>&lt;p&gt;I just found this forum so bare with me please.&lt;/p&gt;
&lt;div class="body"&gt;
&lt;p&gt;My manager has requested an archive count/size 
prediction report, due today of course, on message count and size where 
messages are over 365 days old.&amp;nbsp; We plan to implement archiving and he 
wants to know how many messages will be archived and how much
 space will be required for these messages.&lt;/p&gt;
&lt;p&gt;I am just starting to work with Powershell and believe the 
Get-MailboxStatistics commandlet may be the source but I&amp;#39;m not sure how 
to produce this.&amp;nbsp; My thoughts are something like using today&amp;#39;s date and 
subtracting a variable (365 days in this case)
 to produce a report of total count of messages and total size to be 
archived, by mailbox if possible&lt;/p&gt;
&lt;p&gt;Does anyone have a script that produces a message count and size by age query (by mailbox) they can share with me?j&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Chuck&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Chuck King I.S. Technical Analyst United Regional Health Care System&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Export-Mailbox exchange 2007</title><link>http://powershell.com/cs/forums/thread/24319.aspx</link><pubDate>Mon, 17 Jun 2013 11:06:26 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:24319</guid><dc:creator>Lior</dc:creator><slash:comments>3</slash:comments><comments>http://powershell.com/cs/forums/thread/24319.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=24319</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wrote a script that get users from group in AD, and delete all mails in those users mailbox until specific date. the script is working fine.&lt;/p&gt;
&lt;p&gt;In the end the command &amp;quot;Export-Mailbox&amp;quot; generate report via XML file, some of the lines are:&lt;/p&gt;
&lt;p&gt;StatusMessage &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Messages have been deleted from the source mailbox.&lt;/p&gt;
&lt;p&gt;DisplayName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: LiorTest1&lt;/p&gt;
&lt;p&gt;PrimarySmtpAddress &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : LiorTest1@yes.co.il&lt;/p&gt;
&lt;p&gt;StandardMessagesDeleted &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 264&lt;/p&gt;
&lt;p&gt;AssociatedMessagesDeleted &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 0&lt;/p&gt;
&lt;p&gt;DumpsterMessagesDeleted &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 0&lt;/p&gt;
&lt;p&gt;MoveType &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : DeleteOnly&lt;/p&gt;
&lt;p&gt;MoveStage &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Completed&lt;/p&gt;
&lt;p&gt;I need two things:&lt;/p&gt;
&lt;p&gt;1) to disable this report&lt;/p&gt;
&lt;p&gt;2) generate anther report that will include: PrimarySmtpAddress, MoveStage&lt;/p&gt;
&lt;p&gt;(exchange 2007)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Lior&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Mailbox Search</title><link>http://powershell.com/cs/forums/thread/24099.aspx</link><pubDate>Tue, 11 Jun 2013 14:43:33 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:24099</guid><dc:creator>Subash</dc:creator><slash:comments>7</slash:comments><comments>http://powershell.com/cs/forums/thread/24099.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=24099</wfw:commentRss><description>&lt;p&gt;Search-Mailbox -Identity &amp;quot;Joe Healy&amp;quot; -SearchQuery &amp;#39;Subject:&amp;quot;Project Hamilton&amp;quot;&amp;#39; -TargetMailbox &amp;quot;DiscoveryMailbox&amp;quot; -TargetFolder &amp;quot;JoeHealy-ProjectHamilton&amp;quot; -LogLevel Full&lt;br /&gt;&lt;br /&gt;Above command return all messages contains &amp;quot;Project Hamilton&amp;quot; (For example &amp;#39;Project Hamilton Report&amp;#39; or &amp;#39;Project Hamilton Status&amp;#39;), how can I filter to get only &amp;#39;Project Hamilton&amp;#39; and exclude all other results?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Delegate Calinder</title><link>http://powershell.com/cs/forums/thread/24062.aspx</link><pubDate>Mon, 10 Jun 2013 12:59:42 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:24062</guid><dc:creator>Snir</dc:creator><slash:comments>5</slash:comments><comments>http://powershell.com/cs/forums/thread/24062.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=24062</wfw:commentRss><description>&lt;p&gt;Hii, i want V on checkbox &amp;quot;delegate receives copies of meeting related messages sent to me&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.UserFiles/00.00.03.09.99/Capture.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;I want to make it through powershell&lt;/p&gt;
&lt;p&gt;Thank you so much for helping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Exchange CmdLet Error</title><link>http://powershell.com/cs/forums/thread/23907.aspx</link><pubDate>Tue, 04 Jun 2013 08:19:56 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:23907</guid><dc:creator>ErrorAction</dc:creator><slash:comments>4</slash:comments><comments>http://powershell.com/cs/forums/thread/23907.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=23907</wfw:commentRss><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Im wondering if anyone else had any problems catching specific errors from Exchange 2010 cmdlets? It seems like no matter what I do the only way to catch an error is by not specifying the error type.&lt;/p&gt;
&lt;p&gt;Im guessing it has something to do with Exchange cmdlets using a remote session?&lt;/p&gt;
&lt;p&gt;Example that works:&lt;/p&gt;
&lt;p&gt;try&lt;br /&gt;{Get-DistributionGroup -Identity &amp;#39;DoNotExists&amp;#39; -ErrorAction Stop}&lt;br /&gt;catch{ Do something }&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But what I really want is to catch specifik errors for example:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Grop &amp;#39;DoNotExists&amp;#39; returned 6F0E11E5,Microsoft.Exchange.Management.RecipientTasks.GetDistributionGroup&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess I could always do something like this:&lt;br /&gt;try {Get-DistributionGroup -Identity &amp;#39;DoNotExists&amp;#39; -ErrorAction Stop}&lt;br /&gt;catch&lt;br /&gt;{&lt;br /&gt; if ($_.Exception -Match &amp;quot;*Error message...*&amp;quot;)&lt;br /&gt; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# Do something about it&lt;br /&gt; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But there must be a &amp;quot;correct&amp;quot; way to catch Exchange cmdlet error types? &lt;br /&gt;I would really appreciate if someone could guide me in the right direction, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Exchanged 2007, find all emails older then ...</title><link>http://powershell.com/cs/forums/thread/23746.aspx</link><pubDate>Tue, 28 May 2013 12:59:21 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:23746</guid><dc:creator>Lior</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/23746.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=23746</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need two things (exchange 2007):&lt;/p&gt;
&lt;p&gt;1) To fined all emails in specific mailbox in range of dates: all emails from &amp;quot;date&amp;quot; to &amp;quot;date&amp;quot;, or older then &amp;quot;date&amp;quot;. need to generate &amp;nbsp;report.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) need the option to delete those emails in section 1.&lt;/p&gt;
&lt;p&gt;need to do it with PowerShell&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Lior&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Setup  an Out Of Office text reply on a deprovisioned user's mailbox</title><link>http://powershell.com/cs/forums/thread/23501.aspx</link><pubDate>Wed, 15 May 2013 08:19:16 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:23501</guid><dc:creator>bareedaa</dc:creator><slash:comments>10</slash:comments><comments>http://powershell.com/cs/forums/thread/23501.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=23501</wfw:commentRss><description>&lt;p&gt;I would like&amp;nbsp; to &lt;a href="http://powershell.com/message/35111#35111"&gt;Setup &amp;nbsp;an Out Of Office text reply&amp;nbsp;on a deprovisioned user&amp;#39;s mailbox&lt;/a&gt;&amp;nbsp;using powershell. I need to have auto reply whenever the user account in active directory is disabled. would you provide me the scripts?&lt;/p&gt;
&lt;p&gt;We would like to set up auto out of office reply for disabled/deprovisioned Active Directory users. Is there a power shell script that I can use?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Help with adding a string to an existing script</title><link>http://powershell.com/cs/forums/thread/23457.aspx</link><pubDate>Tue, 14 May 2013 14:56:04 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:23457</guid><dc:creator>Shlomo</dc:creator><slash:comments>4</slash:comments><comments>http://powershell.com/cs/forums/thread/23457.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=23457</wfw:commentRss><description>Guys,

I would like to know what should i use to add a manager to a user in AD i have the below script that working just fine, i just want to add the manger filed as well.

#Import ActiveDirectory module
Import-Module ActiveDirectory
#Input New User Parameters Here
$Password = ConvertTo-SecureString -string &amp;#39;password go here&amp;#39; -asPlainText -Force
$OU = &amp;#39;domain.com/domain/Users&amp;#39;
$first = &amp;#39;test&amp;#39;
$last = &amp;#39;test1&amp;#39;
$al = &amp;#39;test1&amp;#39;
$title = &amp;#39;Corporate Systems Engineer&amp;#39;
$dep = &amp;#39;Sales - Engineering&amp;#39; 
#Do Not Change
$displayname = $first + &amp;#39; &amp;#39; + $last
$UPN = $al+&amp;#39;@domain.com&amp;#39;
$SAM = $al
#Create New Exchange User
New-Mailbox -Name $displayname -Alias $al -OrganizationalUnit $OU -UserPrincipalName $UPN -SamAccountName $SAM -FirstName $first -Initials &amp;#39;&amp;#39; -LastName $last -Password $Password -ResetPasswordOnNextLogon $false
Set-ADUser $al -Title $title -Department $dep
Add-ADGroupMember -Identity group name -Members $al
Set-ADUser $al -Replace @{showInOrgChart=$true}
Set-ADUser $al -Office &amp;#39;France Office&amp;#39; -Company domain.com.&amp;#39; -Title $title -Department $dep -Country FR -Description Employee 
#Enable User for Lync
Enable-CsUser -Identity $displayname -RegistrarPool &amp;#39;server address.com&amp;#39; -SipAddressType EmailAddress&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Can I save body emails from specific sender to text file.</title><link>http://powershell.com/cs/forums/thread/23362.aspx</link><pubDate>Thu, 09 May 2013 11:46:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:23362</guid><dc:creator>Yarpen</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/23362.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=23362</wfw:commentRss><description>&lt;p&gt;I want to save all emails (only body of that emails) from sender test@test.com to text files named as part of title this emails (titles are: &amp;lt;text&amp;gt; day_month_year number) in path \\server_name\test_emails\day_month_year_number.txt or c:\test_emails\day_month_year_number.txt&lt;/p&gt;
&lt;p&gt;How can I do that using powershell ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Exchange Scripting Question</title><link>http://powershell.com/cs/forums/thread/23316.aspx</link><pubDate>Tue, 07 May 2013 17:32:01 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:23316</guid><dc:creator>sahinboluk</dc:creator><slash:comments>3</slash:comments><comments>http://powershell.com/cs/forums/thread/23316.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=23316</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to create a script that will check to see if a user in a list (text document) is on litigation hold, and if so print it out on the screen.&amp;nbsp; Below is what I have :&lt;/p&gt;
&lt;p&gt;foreach ($alias in get-content C:\Windows\system32\scripts\testusers.txt)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Get-Mailbox -Identity $alias | fl LitigationHoldEnabled, Alias&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (LitigationHoldEnabled -eq $True) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;$alias is on LitHold&amp;quot; -fore green&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The output is not what I expected :-).&amp;nbsp; I think I am missing something easy here.&amp;nbsp; Any help would be appreciated!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;[PS] C:\Windows\system32\scripts&amp;gt;.\CheckLitHold.ps1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LitigationHoldEnabled : False&lt;br /&gt;Alias&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : aadetola&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (LitigationHoldEnabled -eq $True)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;$alias is on LitHold&amp;quot; -fore green&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LitigationHoldEnabled : False&lt;br /&gt;Alias&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ABBOTTLV&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (LitigationHoldEnabled -eq $True)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host &amp;quot;$alias is on LitHold&amp;quot; -fore green&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>List all Shared Mailboxes  and the Users / Groups who have access</title><link>http://powershell.com/cs/forums/thread/22100.aspx</link><pubDate>Mon, 11 Mar 2013 16:50:29 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:22100</guid><dc:creator>Trey</dc:creator><slash:comments>8</slash:comments><comments>http://powershell.com/cs/forums/thread/22100.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=22100</wfw:commentRss><description>&lt;p&gt;Well, looks like I&amp;#39;ve stepped in it again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to run a command that will list all of the shared mailboxes in the Exchange Org, as well as, list anyone who has full mailbox rights access. &amp;nbsp;The problem I&amp;#39;ve run into is that some Shared Mailboxes also contain nested groups (universal or security) that have full mailbox access. &amp;nbsp;Since I&amp;#39;m in an Exchange 2003 environment, I can only use powershell or vbscript.&lt;/p&gt;
&lt;p&gt;So far, the script below has left me cross-eyed. &amp;nbsp;Can anyone help me find syntax that will enumerate nested group that happens to also have full mailbox rights to a Shared Mailbox?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Get-QADUser -searchroot &amp;lsquo;dc=company,dc=com&amp;rsquo; -sizelimit 0 | Get-QADPermission -ErrorAction SilentlyContinue | where { ($_.AccessRights -like &amp;ldquo;*FullAccess*&amp;rdquo;) -and ($_.IsInherited -eq $false) -and -not ($_.User -like &amp;ldquo;NT AUTHORITY\SELF&amp;rdquo;) -and -not ($_.AccountName -like &amp;ldquo;SELF&amp;rdquo;) }&amp;nbsp;| foreach-object {$_.get-qadgroupmember -sizelimit 0 -indirect | select-object firstname,lastname,logonname,@{n=&amp;quot;GroupName&amp;quot;}} &amp;gt;C:\EnumerateSharedMailbox.csv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ActiveSync Exchnage 2007</title><link>http://powershell.com/cs/forums/thread/22627.aspx</link><pubDate>Tue, 09 Apr 2013 08:44:49 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:22627</guid><dc:creator>steve.timmins</dc:creator><slash:comments>3</slash:comments><comments>http://powershell.com/cs/forums/thread/22627.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=22627</wfw:commentRss><description>&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;Hi,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;Exchange 2007 &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;Please can someone help with a PowerShell command? &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;I need help with a script that I will schedule to run on a daily basis to disable ActiveSync on all mailboxes except for users which are members of a security group &amp;quot;Exchange ActiveSync Users&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;I have disabled active sync for all users and by running the following command as a scheduled task on a daily basis any new created user&amp;rsquo;s ActiveSync gets disabled. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;Get-User -ResultSize Unlimited | Where {($_.WhenCreated -gt (get-date).adddays(-1))} | Set-CASMailbox &amp;ndash;ActiveSyncEnabled $false&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;Just would like to run something similar but exclude users in security group &amp;quot;Exchange ActiveSync Users&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0cm 0cm 10pt;"&gt;&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Delete All E-Mail older than XX days</title><link>http://powershell.com/cs/forums/thread/22507.aspx</link><pubDate>Fri, 29 Mar 2013 17:57:07 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:22507</guid><dc:creator>Scubadave112</dc:creator><slash:comments>5</slash:comments><comments>http://powershell.com/cs/forums/thread/22507.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=22507</wfw:commentRss><description>&lt;p&gt;I am an absolute noob when it come to powershell but I am trying to improve on that&lt;/p&gt;
&lt;p&gt;I manage many office 365 accounts and am looking to perform certain tasks much faster.&lt;/p&gt;
&lt;p&gt;this week I was asked to log into each user&amp;#39;s account and delete all e-mail from the portal and this process took so long it was insane. I did some google work and saw that there are ways to do this using powershell but everything I tried did not work.&lt;/p&gt;
&lt;p&gt;Does anyone here know of a way to accomplish this task. if you provide an example please use Dschatz as the user and Dschatz@sample.com as the email.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried this code:&lt;/p&gt;
&lt;p&gt;Get-Mailbox -Identity &amp;ldquo;USERHERE&amp;rdquo; | Search-Mailbox -ContentFilter {((Received -lt &amp;rsquo;12/06/1990) -and (Received -ge &amp;rsquo;01/01/2013&amp;#39;)) -DeleteContent -force&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;when i run this all i get are two carrots like it is waiting for my input something else looks like:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;I am even willing to pay for people to help me out with this as well so if anyone has any advise or can offer assistance I would greatly appreciate it.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Thank in advance&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Get PrimarySmtpAddress from a list of DisplayName</title><link>http://powershell.com/cs/forums/thread/22487.aspx</link><pubDate>Thu, 28 Mar 2013 18:27:07 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:22487</guid><dc:creator>robrgr</dc:creator><slash:comments>5</slash:comments><comments>http://powershell.com/cs/forums/thread/22487.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=22487</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can import-csv file of users full name to gather their&amp;nbsp;corresponding&amp;nbsp;PrimarySmtpAddress. &amp;nbsp;However, I am unable to export the information to a .csv file using Export-csv. &amp;nbsp;The Export-csv should list each users DisplayName, PrimarySmtpAddress, and EmailAddresses in each row and&amp;nbsp;separate&amp;nbsp;column. &amp;nbsp;The before mentioned DisplayName, PrimarySmtpAddress, and EmailAddresses is the header for the .csv file. &amp;nbsp;Any help will be much appreciated. &amp;nbsp;Prior to the Export-csv I reciev the following output, which looks great, but I need the output to look great in a .csv file.&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;DisplayName &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PrimarySmtpAddress &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EmailAddresses &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;----------- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ------------------ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-------------- &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;Foreach ($Mailbox in Import-Csv c:\x\x\xTest3.csv)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;$Property = @{&lt;/p&gt;
&lt;p&gt;Property = &amp;#39;DisplayName&amp;#39;,&amp;#39;PrimarySmtpAddress&amp;#39;,&lt;/p&gt;
&lt;p&gt;@{Name=&amp;quot;EmailAddresses&amp;quot;;Expression={$_.EmailAddresses | `&lt;/p&gt;
&lt;p&gt;Where-Object -FilterScript {$_.PrefixString -ceq &amp;quot;smtp&amp;quot;} | `&lt;/p&gt;
&lt;p&gt;Where-Object -FilterScript {$_.PrefixString -ceq &amp;quot;smtp&amp;quot;} | `&lt;/p&gt;
&lt;p&gt;ForEach-Object -Process {$_.SmtpAddress}}}&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Get-Mailbox -Identity $Mailbox.Last_Name | Select-Object @Property&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;$Mailbox |Export-Csv -Path C:\x\x\x\.csv&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Extra Linebreaks in Outlook Mail Message</title><link>http://powershell.com/cs/forums/thread/22172.aspx</link><pubDate>Thu, 14 Mar 2013 22:35:51 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:22172</guid><dc:creator>rkruse</dc:creator><slash:comments>3</slash:comments><comments>http://powershell.com/cs/forums/thread/22172.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=22172</wfw:commentRss><description>&lt;p&gt;I am using&amp;nbsp;a function to send emails via Outlook in an automated workflow process. The following&amp;nbsp;script has been stripped down to troubleshoot a problem where, once the Outlook 2007 message is brought up, there is an extra line break in the enumerated list. There are four items listed inside the here-string for $emailBody after the text &amp;#39;To correct the bad invoice transmission:&amp;#39;, but after the first one there is an extra line break. The line break does not occur elsewhere and seems to have something to do with the length of the string on that particular line, but I&amp;#39;ve tried changing buffers/etc. and cannot get rid of it. Any help or insight would be greatly appreciated!&lt;/p&gt;
&lt;p&gt;#==== Functions ===============================================================&lt;br /&gt;function Send-Email&lt;br /&gt;(&lt;br /&gt;&amp;nbsp;[string]$toList = $(Throw &amp;quot;At least one email address is required!&amp;quot;),&lt;br /&gt;&amp;nbsp;[string]$ccList = $(Throw &amp;quot;At least one email address is required!&amp;quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [string]$subject = $(Throw &amp;quot;An email subject header is required!&amp;quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [string]$body = $(Throw &amp;quot;An email body is required!&amp;quot;)#,&lt;br /&gt;)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;$vendorName = &amp;#39;JUST TESTING&amp;#39;&lt;br /&gt;&amp;nbsp;write-host &amp;quot;Creating email message for: $vendorName&amp;quot;&lt;br /&gt;&amp;nbsp;$outlookMailItem = 0 #secret code for a mail item...&lt;br /&gt;&amp;nbsp;$outlookObject = New-Object -comObject&amp;nbsp; Outlook.Application &lt;br /&gt;&amp;nbsp;$mailItem = $outlookObject.CreateItem($outlookMailItem)&lt;br /&gt;&amp;nbsp;$mailItem.To = &amp;quot;$toList&amp;quot;&lt;br /&gt;&amp;nbsp;$mailItem.cc = &amp;quot;$ccList&amp;quot;&lt;br /&gt;&amp;nbsp;$mailItem.Subject = $vendorName + &amp;#39;: &amp;#39; + $subject&lt;br /&gt;&amp;nbsp;$mailItem.Body = $body&lt;br /&gt;&amp;nbsp;$inspector = $mailItem.GetInspector&lt;br /&gt;&amp;nbsp;$inspector.Activate()&lt;br /&gt;}&lt;br /&gt;#==== End Functions ===========================================================&lt;/p&gt;
&lt;p&gt;#==== Variables ===============================================================&lt;br /&gt;$emailSubject = &amp;#39;Bad Invoice Data Transmission Report&amp;#39;&lt;br /&gt;$emailBody = @&amp;quot;&lt;br /&gt;The attached files were received by company X&amp;#39;s EDI invoicing system after processing by some third party or whatnot. The data was incomplete or incorrect and could not be processed. Please resubmit the data including all pertinent information.`t`r`n&lt;br /&gt;The problem with each is a missing or invalid Job Number and/or a missing or invalid PO Number (Sales Order Number).`t`r`n&lt;br /&gt;To correct the bad invoice transmission:`t&lt;br /&gt;1.Contact the party at company X who placed the order (not Jennie or anyone in the accounting department) and determine the correct PO # and Job # for each order&lt;br /&gt;2.Enter the PO # correctly as denoted below.&lt;br /&gt;3.Resend the Invoice through ABC to company X&amp;#39;s EDI system`t&lt;br /&gt;4.Resend the corrected Invoice Image through ABC to company X&amp;#39;s EDI system`t`n&lt;br /&gt;You can find each Invoice/Sales Order Number by one of two ways:`t&lt;br /&gt;1.`tThe Invoice Number as sent to us from you is the first set of characters in the file name.`t&lt;br /&gt;2.`tYou can open the attached file in notepad or any text file editor. The Invoice # is denoted as SUPPLIER_INVOICE_NUMBER=`t`n&lt;br /&gt;The company X Order Number should be written as PPPPPP-JJJJJJJ where PPPPPP is the PO Number and JJJJJJ is the Job Number. company X&amp;#39;s employees should be calling it in that way as well. IMPORTANT SEE THE &amp;#39;-&amp;#39; IN BETWEEN THE PO AND THE JOB NUMBER: THAT IS NOT A .(period) OR A SPACE BUT A -(hyphen). Again, that is the way company X should be calling it in to you as well.`n&lt;br /&gt;These invoices cannot be processed into our system if we do not have correct PO Numbers and Job Numbers.&lt;br /&gt;&amp;quot;@&lt;br /&gt;$recipListSupplier = &amp;quot;&lt;a href="mailto:someone@supplier.com"&gt;someone@supplier.com&lt;/a&gt;&amp;quot;&lt;br /&gt;$ccList = &amp;quot;&lt;a href="mailto:aPerson@companyX.test"&gt;aPerson@companyX.test&lt;/a&gt;&amp;quot;&lt;br /&gt;#==== End of Variables ========================================================&lt;/p&gt;
&lt;p&gt;write-host &amp;#39;Creating email message...&amp;#39;&lt;br /&gt;Send-Email -toList $recipListSupplier -ccList $ccList -subject $emailSubject -body $emailBody&lt;br /&gt;write-host &amp;#39;Finished with processing!&amp;#39;&lt;br /&gt;start-sleep 5&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to change give "Author" permissions to a mailbox in Exchange 2010</title><link>http://powershell.com/cs/forums/thread/22128.aspx</link><pubDate>Tue, 12 Mar 2013 15:59:49 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:22128</guid><dc:creator>rexican</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/22128.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=22128</wfw:commentRss><description>&lt;p&gt;Here is my issue:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have a shared mailbox that two departments use. &amp;nbsp;let&amp;#39;s call it &amp;quot;Inventory&amp;nbsp;Request Mailbox&amp;quot;. &amp;nbsp;I&amp;#39;ve created a outlook form that the users can fill out and then send. &amp;nbsp;This form is coded to send to the &amp;quot;Inventory&amp;nbsp;Request Mailbox&amp;quot; where the 2&amp;nbsp;departments&amp;nbsp;can see.&lt;/p&gt;
&lt;p&gt;Now here&amp;#39;s where it gets tricky.&lt;/p&gt;
&lt;p&gt;Originally in exchange 2003, i was able to give group A access to the mailbox and group A would be able to only modify their own email/form within that mailbox.&lt;/p&gt;
&lt;p&gt;And group B would have full access to the forms in that mailbox&lt;/p&gt;
&lt;p&gt;With Exchange 2010, I can&amp;#39;t seem to duplicate that. &amp;nbsp;It seems that its Full access or just read. &amp;nbsp;Even if i modify the permissions in the mailbox level, it doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m thinking that this can only be done via powershell. &amp;nbsp; If so, can someone please explain how.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>email users with fullaccess</title><link>http://powershell.com/cs/forums/thread/22026.aspx</link><pubDate>Thu, 07 Mar 2013 13:30:39 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:22026</guid><dc:creator>totalnet32</dc:creator><slash:comments>1</slash:comments><comments>http://powershell.com/cs/forums/thread/22026.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=22026</wfw:commentRss><description>&lt;p&gt;I was hoping to email all users that have full access to shared mailboxes on one particular storage group. I need to see if I can delete shared mailboxes that are not needed. they are just regular mailboxes used for mass mailing.&lt;br /&gt;&lt;br /&gt;I was thinking of using powershell to export all mailbox names with full access Permission and then have send-message email users with a &amp;quot;canned email&amp;quot; &lt;br /&gt;With having a txt file i can test/control when and what user receive the email.&lt;br /&gt;&lt;br /&gt;[PS] Get-Mailbox -ResultSize unlimited -database &amp;#39;server\storage\db01&amp;#39;| Sort-Object -Property Identity | Get-MailboxPermission | where { ($_.AccessRights -eq &amp;quot;FullAccess&amp;quot;) -and ($_.IsInherited -eq $false) -and -not ($_.User -like &amp;quot;N&lt;br /&gt;T AUTHORITY\SELF&amp;quot;) } | ft identity, user &amp;gt; c:\temp\text.txt&lt;br /&gt;&lt;br /&gt;I would need the identity field to be in the subject and the user property in the TO field.&lt;br /&gt;The foreach-object is giving me an issue.&lt;br /&gt;please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Powershell to list all Mailboxes who can receive mails from everyone else</title><link>http://powershell.com/cs/forums/thread/21857.aspx</link><pubDate>Thu, 28 Feb 2013 19:57:44 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:21857</guid><dc:creator>gab0rlz</dc:creator><slash:comments>5</slash:comments><comments>http://powershell.com/cs/forums/thread/21857.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=21857</wfw:commentRss><description>&lt;p&gt;Hello, how are u, &amp;nbsp;I&amp;#39;m just needing a powershell cmdlet to list all mailboxes who can receive emails from all senders&lt;br /&gt;&lt;br /&gt;Like this pic: &lt;br /&gt;&lt;img src="http://i.imgur.com/yQAflwh.png" border="0" /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Im Trying this: Get-MailBox -filter {AcceptMessagesOnlyFrom -ne $null}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But didn&amp;#39;t works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>User statistics on Room Mailboxes</title><link>http://powershell.com/cs/forums/thread/21932.aspx</link><pubDate>Mon, 04 Mar 2013 14:45:15 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:21932</guid><dc:creator>Trond Jenssen</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/21932.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=21932</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;My boss wants me to get user statistics on our Room Mailboxes. I Guess number of Meetings pr user/owner would be sufficient.&lt;/p&gt;
&lt;p&gt;Does anybody have a Nice PowerShell-script to accomplish this?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;Trond A Jenssen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Multiple Mailbox inbox count</title><link>http://powershell.com/cs/forums/thread/21855.aspx</link><pubDate>Thu, 28 Feb 2013 19:10:49 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:21855</guid><dc:creator>Raj</dc:creator><slash:comments>2</slash:comments><comments>http://powershell.com/cs/forums/thread/21855.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=21855</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have around 100 journaling mailboxes I check everyday twice make sure my archive software pickup and delete emails after archive. I am looking powershell script to get inbox and sent item counts of all mailboxes..&lt;/p&gt;
&lt;p&gt;Thanks in adavance&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Prepare-MoveRequest error</title><link>http://powershell.com/cs/forums/thread/21437.aspx</link><pubDate>Tue, 05 Feb 2013 23:07:52 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:21437</guid><dc:creator>wspencer76</dc:creator><slash:comments>4</slash:comments><comments>http://powershell.com/cs/forums/thread/21437.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=21437</wfw:commentRss><description>&lt;p&gt;I am running the command below from the management shell &amp;ldquo;as administrator&amp;rdquo;:&lt;/p&gt;
&lt;p&gt;Import-Csv &amp;ldquo;c:\test\users.txt&amp;rdquo; | &amp;ldquo;.\Prepare-MoveRequest.ps1&amp;Prime; -RemoteForestDomainController &amp;ldquo;OldForest.local&amp;rdquo; -RemoteForestCredential $RemoteCredentials -LocalDomainController &amp;ldquo;NewForest.local&amp;rdquo; -LocalForestCredential $LocalCredentials -TargrtMailUserOU &amp;ldquo;OU=User Accounts,DC=NewForest,DC=Local -UseLocalObject -OverWriteLocalObject -Verbose&lt;/p&gt;
&lt;p&gt;I am then receiving the following error:&lt;/p&gt;
&lt;p&gt;You must provide a value expression on the right-hand side of the &amp;lsquo;-&amp;rsquo; operator.&lt;br /&gt;At line:1 char:63&lt;br /&gt;+ Import-Csv &amp;ldquo;c:\test\users.txt&amp;rdquo; | &amp;ldquo;.\Prepare-MoveRequest.ps1&amp;Prime; &amp;ndash; &amp;lt;&amp;lt;&amp;lt;&amp;lt;RemoteForestDomainController &amp;quot;OldForest.local&amp;quot; -RemoteForestCredential $RemoteCredentials -LocalDomainController &amp;quot;NewForest.local&amp;quot; -LocalForestCredential $LocalCredentials -TargrtMailUserOU &amp;quot;OU=User Accounts,DC=NewForest,DC=Local -UseLocalObject -OverWriteLocalObject -Verbose&lt;br /&gt;+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException&lt;br /&gt;+ FullyQualifiedErrorId : ExpectedValueExpression&lt;/p&gt;
&lt;p&gt;Not sure what I&amp;#39;m doing wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Extracting number fields read from a CSV file</title><link>http://powershell.com/cs/forums/thread/21050.aspx</link><pubDate>Wed, 16 Jan 2013 15:27:14 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:21050</guid><dc:creator>ITGroup-FMI</dc:creator><slash:comments>8</slash:comments><comments>http://powershell.com/cs/forums/thread/21050.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=21050</wfw:commentRss><description>&lt;p&gt;We have created a script that gets each users mailbox size than send an email to user over a certain size.&amp;nbsp; I am trying to pull just the number out but with no luck so far.&lt;/p&gt;
&lt;p&gt;Examples:&amp;nbsp; 878 MB (920,701,150 bytes), 808.3 MB (847,514,236 bytes), 722.5 MB (757,637,021 bytes)&lt;/p&gt;
&lt;p&gt;I have tried using the .split to start at the beginning and end at the space because the size is variable in size. &lt;/p&gt;
&lt;p&gt;Here is the sample code&lt;/p&gt;
&lt;p&gt;$I = Get-MailboxStatistics -Identity &amp;lt;mailbox&amp;gt;&lt;br /&gt;$U = Get-Mailbox -Identity &amp;lt;Mailbox&amp;gt;&lt;br /&gt;$Size = $I.TotalItemSize&lt;br /&gt;&lt;br /&gt;$SizeWK = $Size -split &amp;#39; &amp;#39;&lt;br /&gt;$SizeMB = $SizeWK -like &amp;#39;MB&amp;#39;&lt;br /&gt;If ($SizeMB -eq &amp;#39;MB&amp;#39;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; $SizeNum = $Size.split(&amp;quot; &amp;quot;)[1] &lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Monthly Update to Public Folder Contact List</title><link>http://powershell.com/cs/forums/thread/21028.aspx</link><pubDate>Tue, 15 Jan 2013 16:54:46 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:21028</guid><dc:creator>Joe</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/21028.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=21028</wfw:commentRss><description>&lt;p&gt;I have a task that I have to start doing once a month to update a list of contacts to a public folder.&amp;nbsp; A former co-worker has done this for our company in the past and I have inherited this duty and I&amp;#39;m very new to powershell scripting. &lt;/p&gt;
&lt;p&gt;So the information comes to me in a .csv that has the full list of current contacts that need to be in this list. What I am needing to know how to do is take the data from this .csv and import only the changes or new entries from this .csv into the public folder that we have on the exchange server.&lt;/p&gt;
&lt;p&gt;I know that my predecessor used Powershell to get the information in there, so I&amp;#39;m sure that there is a way to do this for a monthly reoccurring process to ensure that this list is modified without having to remove the public folder and republishing the public folder and syncing it on the devices that have this list again. &lt;/p&gt;
&lt;p&gt;We are dealing with Exchange 2010.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>PowerShell accessing a Exchange 2003 Mailbox</title><link>http://powershell.com/cs/forums/thread/20815.aspx</link><pubDate>Thu, 03 Jan 2013 19:41:03 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:20815</guid><dc:creator>lmark33322</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/20815.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=203&amp;PostID=20815</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m still pretty new to PowerShell and was wondering if there is a way to control Exchange 2003 Mailboxes with PowerShell.&lt;/p&gt;
&lt;p&gt;Specially&amp;nbsp;what I am looking to do is set Out Of Office messages for different users when the request comes up.&lt;/p&gt;
&lt;p&gt;I have been using Get-WmiObject to get information about Exchange servers, but really don&amp;#39;t know where to go from here or if it&amp;#39;s possible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve seen in Exchange 2007 and later this becomes possible and looks easier with the additional modules available, but for now I&amp;#39;m stuck on 2003.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks all!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>