<?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', 'remoting', and 'remote'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=(app:forums+OR+groupid:24)&amp;tag=Exchange,remoting,remote&amp;orTags=0&amp;o=DateDescending</link><description>Search results for '(app:forums OR groupid:24)' matching tags 'Exchange', 'remoting', and 'remote'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Run a test-mailflow within the invoke-command?</title><link>http://powershell.com/cs/forums/thread/18039.aspx</link><pubDate>Tue, 31 Jul 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:18039</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;
&lt;p&gt;I&amp;#39;m trying to run the test-mailflow cmdlet, within the invoke-command cmdlet. &amp;nbsp;I&amp;#39;m on a Client Access Server and I can issue the test-mapiconnectivity cmdlet against a user. &amp;nbsp;However in order to run the test-mailflow cmdlet, I need to be on the mailbox server that the user is on.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m referencing this article:&amp;nbsp;&lt;a href="http://technet.microsoft.com/en-us/library/hh849719.aspx"&gt;http://technet.microsoft.com/en-us/library/hh849719.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The problem is I keep getting the error:&lt;/p&gt;
&lt;p&gt;A variable that cannot be referenced in restricted language mode or a Data section is being referenced. Variables that&lt;br /&gt;can be referenced include the following: $PSCulture, $PSUICulture, $true, $false, and &amp;nbsp;$null.&lt;br /&gt;&amp;nbsp; &amp;nbsp; + CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: ParserError: (data:Token) [], ParseException&lt;br /&gt;&amp;nbsp; &amp;nbsp; + FullyQualifiedErrorId : VariableReferenceNotSupportedInDataSection&lt;/p&gt;
&lt;p&gt;Anyone know what I&amp;#39;m missing or how I can get the invoke-command to run the mailflow test remotely?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;
&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/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>Re: Show a menu based on multiple variables!</title><link>http://powershell.com/cs/forums/thread/14692.aspx</link><pubDate>Wed, 15 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14692</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;In my script I created a menu that allowed the user to restart a service on the server from within the powershell session.&amp;nbsp; My idea was to use a if (condition) that showed the menu if the condition applied.&amp;nbsp; I got it figured out though.&amp;nbsp; I did this:&lt;/p&gt;
&lt;p&gt;if ((condition is true) -or (condition2 is true) -or (condition 3 is true)) {show menu}.&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description></item><item><title>Re: Recycling an IIS AppPool in powershell...</title><link>http://powershell.com/cs/forums/thread/14654.aspx</link><pubDate>Tue, 14 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14654</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;This is what I&amp;#39;m looking for.&amp;nbsp; Ill post again if i have issues.&amp;nbsp; Cheers.&lt;/p&gt;</description></item><item><title>Show a menu based on multiple variables!</title><link>http://powershell.com/cs/forums/thread/14662.aspx</link><pubDate>Tue, 14 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14662</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;I&amp;#39;m writing a script in powershell. What I want to have happen, is to have a menu to restart a service appear based on an error being detected on the server. Say a service is not running, or outlook does not pass a connectivity test, I want the script to use both variables in determining to show the menu. Like for example,&lt;/p&gt;
&lt;p&gt;if (($service.status -ne &amp;quot;running&amp;quot;) or ($outlook connectivity result -like &amp;quot;failure&amp;quot;) {show menu}. Something like that is what I&amp;#39;m looking for.&lt;/p&gt;
&lt;p&gt;Any thoughts? Cheers.&lt;/p&gt;</description></item><item><title>.net remote powershell with Exchange 2010 Cmdlets - Problem with &amp;quot;Script block literals are not allowed in restricted language mode or a Data section&amp;quot;</title><link>http://powershell.com/cs/forums/thread/8537.aspx</link><pubDate>Fri, 03 Dec 2010 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:8537</guid><dc:creator>OlivierR</dc:creator><description>&lt;p&gt;Hi All, I am trying to run cmdlets from VB.NET. I managed to create a session to a remote session and to run either basic powershell commands or Exchange 2010 cmdlets. However I have a problem when trying to run more complex scripts, like &lt;/p&gt;
&lt;p&gt;&amp;quot;Get-Mailbox | Where-Object {$_.database -match &amp;quot;database&amp;quot;}&amp;quot; &lt;/p&gt;
&lt;p&gt;because I get the error&lt;/p&gt;
&lt;p&gt; &amp;quot; Script block literals are not allowed in restricted language mode or a Data section&amp;quot;. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This problem only happens with Exchange cmdlets, while using the &amp;quot;http://schemas.microsoft.com/powershell/Microsoft.Exchange&amp;quot; URI. &lt;/p&gt;
&lt;p&gt;I hope my question is clear, let me know if you need more details. Thank you a lot for your help because I have been struggling for few days with that now. &lt;/p&gt;
&lt;p&gt;I believe there migtht be a way to create a new PSSession and then import the exchange cmdlets locally but I would prefer avoiding that as it takes a long time to import the cmdlets.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Olivier.&lt;/p&gt;</description></item></channel></rss>