<?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>Search results for '(app:forums OR groupid:24)' matching tags 'Exchange' and 'powershell'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=(app:forums+OR+groupid:24)&amp;tag=Exchange,powershell&amp;orTags=0&amp;o=DateDescending</link><description>Search results for '(app:forums OR groupid:24)' matching tags 'Exchange' and 'powershell'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><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 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:23501</guid><dc:creator>bareedaa</dc:creator><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;</description></item><item><title>Exchange Scripting Question</title><link>http://powershell.com/cs/forums/thread/23316.aspx</link><pubDate>Tue, 07 May 2013 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:23316</guid><dc:creator>sahinboluk</dc:creator><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;</description></item><item><title>ForEach variable is $null in 2010, but not 2007</title><link>http://powershell.com/cs/forums/thread/19919.aspx</link><pubDate>Thu, 08 Nov 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:19919</guid><dc:creator>mitchellguthrie</dc:creator><description>&lt;p&gt;Hi All,&lt;br /&gt;&lt;br /&gt;I have a PS script that&amp;#39;s working well in Exchange 2007, 
but doesn&amp;#39;t in Exchange 2010. In 2010 I get the error that 
$Recipients.DistinguishedName is null. Anyone point me in the right 
direction to get this working?&lt;br /&gt;&lt;br /&gt;What the script does is checks all
 the mailbox folders of the Linked Mailboxes and if it finds the folder 
&amp;quot;Cloud Archive&amp;quot; in their mailbox it will add them to the Distribution 
List &amp;quot;ArchiveCloudDistro&amp;quot;; works in a 2007 env, but not in 2010.&lt;br /&gt;&lt;br /&gt;$Recipients
 = Get-Recipient -ErrorAction SilentlyContinue -WarningAction 
SilentlyContinue -ResultSize Unlimited -Filter {(RecipientTypeDetails 
-eq &amp;#39;LinkedMailbox&amp;#39;)}&lt;br /&gt;$Recipients | ForEach 
{(Get-MailboxFolderStatistics -Identity $_.DistinguishedName)} | Where 
{($_.FolderPath -eq &amp;quot;/Cloud Archive&amp;quot;)} | ForEach 
{Add-DistributionGroupMember -Member $Recipients.DistinguishedName 
-Identity ArchiveCloudDistro}&lt;/p&gt;</description></item><item><title>How to Remove Custom SMTP Address</title><link>http://powershell.com/cs/forums/thread/17970.aspx</link><pubDate>Sun, 29 Jul 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:17970</guid><dc:creator>gelmera</dc:creator><description>&lt;p&gt;Team,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need help with a quick one hopefully someone can help i have a custom address in email address that is NUMERIC:000000 it is for voicemail. I am trying to remove the custom attribute from emc but to no evail the only thing i can remove are the SMTP address. Any one have any ideas on how to remove a custom smtp address. I can query for it in EMC.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Multi-Mailbox search using Powershell?</title><link>http://powershell.com/cs/forums/thread/16493.aspx</link><pubDate>Fri, 11 May 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16493</guid><dc:creator>joe.kelley</dc:creator><description>&lt;p&gt;We are in a hosted Exchange environment (Live@Edu).&amp;nbsp; I&amp;#39;d like to script some multi-mailbox searches using powershell (and probably importing the &amp;quot;From:&amp;quot; addresses from a csv file).&amp;nbsp; I gather either Search-Mailbox or New-MailboxSearch are used (New-MailboxSearch is asynchronous, and seems more nearly what you get running a multi-mailbox search from the ECP).&amp;nbsp; However, whatever the case, I have also been reviewing Advanced Query Syntax and it seems quite powerful, but all I see as examples are just t Ahe Boolean AND, OR, and NOT (but it seems this is to AQS than that, though perhaps not available to PS?).&amp;nbsp; Any good writeups on this?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Here&amp;#39;s why: a user is missing mail that had been stored in distinct - non-Inbox - folders.&amp;nbsp; It cannot be found anywhere.&amp;nbsp; This is a last chance to find it. The folders it was stored in are known (they are still there, just empty) and (somehow) the names are known too.&amp;nbsp; All the examples of searches I find are related to file searches, but email has some extras (SMTP headers, for example), but may not have other things you&amp;#39;d find/need/use in a file search.&amp;nbsp; Apologies if this is poorly-described.&amp;nbsp; I&amp;#39;m sure I&amp;#39;m overlooking things and probably included things that are irrelevant.&amp;nbsp; At any rate, if others have done this or similar, or have some suggested links, I&amp;#39;d appreciate it.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;--Joe&lt;/p&gt;</description></item><item><title>Using send-mailmessage cmdlet...?</title><link>http://powershell.com/cs/forums/thread/16096.aspx</link><pubDate>Sun, 22 Apr 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16096</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;I am trying to use the send-mailmessage cmdlet, but im runninng into a problem where I am getting a &amp;quot;Send-MailMessage : The remote certificate is invalid according to the validation procedure.&amp;quot; error.&amp;nbsp; I&amp;#39;m running the cmd like this:&lt;/p&gt;
&lt;p&gt;send-mailmessage -to &amp;lt;address&amp;gt; -from &amp;lt;address&amp;gt; -subject &amp;quot;test&amp;quot; -body &amp;quot;This is a test from powershell&amp;quot; -usessl -credential domain\user -smtpserver &amp;lt;server name&amp;gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyone know what I am doing wrong??&amp;nbsp; Thx.&lt;/p&gt;</description></item><item><title>How do I use Invoke-Command correctly?</title><link>http://powershell.com/cs/forums/thread/15183.aspx</link><pubDate>Wed, 07 Mar 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:15183</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;Im trying to run the command test-outlookconnectivity -protocol:tcp or http -trustanysslcert:$true.&amp;nbsp; I&amp;#39;m wanting to run it on a remote machine as if I were on the machine, and have the output returned to the screen of the local machine.&lt;/p&gt;
&lt;p&gt;As stated in this article: &lt;a href="http://technet.microsoft.com/en-us/library/dd347578.aspx"&gt;http://technet.microsoft.com/en-us/library/dd347578.aspx&lt;/a&gt;, i tried to use the invoke-command.&amp;nbsp; My syntax looks like this:&lt;/p&gt;
&lt;p&gt;Invoke-command -comuptername &amp;lt;sever name&amp;gt; -scriptblock {test-outlookconnectivity ....} -authentication Kerberos.&amp;nbsp; However I got this error:&lt;/p&gt;
&lt;p&gt;&amp;quot;Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.&amp;quot;&lt;/p&gt;
&lt;p&gt;Anyone got any idea what im doing wrong?&amp;nbsp; I have permissions to run the cmd on both machines and I can also successfully ping the remote machine.??&amp;nbsp; Thanks.&lt;/p&gt;</description></item><item><title>Re: Add event logs to a transcript!</title><link>http://powershell.com/cs/forums/thread/14970.aspx</link><pubDate>Tue, 28 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14970</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;Ok so I was doing some further digging and realized that when a file in in use by start-transcript, that file appears to become locked from use by any other cmdlets.&amp;nbsp; So what I did was this:&lt;/p&gt;
&lt;p&gt;start-transcript output file is C:\transcript.txt&lt;/p&gt;
&lt;p&gt;Run cmdlet, run test&lt;/p&gt;
&lt;p&gt;stop-transcript&lt;/p&gt;
&lt;p&gt;get-eventlog &amp;gt;&amp;gt; C:\transcript.&lt;/p&gt;
&lt;p&gt;By doing this it appends the get-eventlog to the transcript file.&amp;nbsp; That is what I have found so far.&lt;/p&gt;</description></item><item><title>Re: Add event logs to a transcript!</title><link>http://powershell.com/cs/forums/thread/14793.aspx</link><pubDate>Mon, 20 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14793</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;Yes so I added the -append switch to the start-transcript.&amp;nbsp; Also did a &amp;gt;&amp;gt; with get-eventlog so it would append that info to the info in the transcript.&amp;nbsp; Problem is that it&amp;#39;s throwing the error &amp;quot;unable to access the file as another person or process is all ready using it&amp;quot;.&amp;nbsp; So how would I get the info from get-eventlog to add its info to the file from the transcript.&amp;nbsp; Bascially im wanting to have the entire shell session logged into the transcript and also any application events as well.&amp;nbsp; ANy thoughts..?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description></item><item><title>Formating output from get-mailboxdatabase query</title><link>http://powershell.com/cs/forums/thread/14730.aspx</link><pubDate>Fri, 17 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14730</guid><dc:creator>Steve4586</dc:creator><description>&lt;p&gt;I have a requirement to create a text file containing Exchange Database information in the following format:&lt;/p&gt;
&lt;p&gt;Indentity:size Indentity:size&lt;/p&gt;
&lt;p&gt;so this would look like &lt;/p&gt;
&lt;p&gt;DBase01: 1234 Dbase02: 4321&lt;/p&gt;
&lt;p&gt;I have a script the outputs the data in the format&lt;/p&gt;
&lt;p&gt;DBase01: 1234&lt;/p&gt;
&lt;p&gt;Dbase02: 4321&lt;/p&gt;
&lt;p&gt;I am a little stuck on how to do this: script is below, any help would be appreciated.&amp;nbsp; For info, this is to create data that Cacti will accept to graph the data:&lt;/p&gt;
&lt;p&gt;------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;# Get all the Mailbox servers &lt;br /&gt;$colon = &amp;quot;:&amp;quot;&lt;br /&gt;ForEach ($server in Get-MailboxServer)&lt;br /&gt;{&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; # For each Mailbox server, get all the databases on it &lt;br /&gt;&amp;nbsp;&amp;nbsp; $strDB = Get-MailboxDatabase -Server $server&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; # For each Database, get the information from it &lt;br /&gt;&amp;nbsp;&amp;nbsp; ForEach ($objItem in $strDB)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; {&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $intUsers = ($objitem | Get-Mailbox -ResultSize Unlimited).count &lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $strDBsize = Get-ChildItem $path&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ReturnedObj = New-Object PSObject&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ReturnedObj | Add-Member NoteProperty -Name &amp;quot;Database&amp;quot; -Value $objItem.name &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ReturnedObj | Add-Member NoteProperty -Name &amp;quot;User Count&amp;quot; -Value $intUsers&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $data = ($ReturnedObj.database +&amp;nbsp; $colon + $ReturnedObj.&amp;#39;User Count&amp;#39;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Write-Output $output | FT -HideTableHeaders -AutoSize&lt;br /&gt;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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;</description></item></channel></rss>