<?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 'remoting', 'remote', and 'exchange 2010'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=(app:forums+OR+groupid:24)&amp;tag=remoting,remote,exchange+2010&amp;orTags=0&amp;o=DateDescending</link><description>Search results for '(app:forums OR groupid:24)' matching tags 'remoting', 'remote', and 'exchange 2010'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>How would I use get-itemproperty remotely?</title><link>http://powershell.com/cs/forums/thread/18191.aspx</link><pubDate>Wed, 08 Aug 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:18191</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;I have a foreach loop.&amp;nbsp; And what I want to do is get a reg key value from each server in that loop.&amp;nbsp; I have something like this:&lt;/p&gt;
&lt;p&gt;$serverlist = get-exchangeserver blah blah&lt;/p&gt;
&lt;p&gt;foreach ($server in $serverlist){&lt;/p&gt;
&lt;p&gt;get-itemproperty -path &amp;quot;hklm:\..\..&amp;quot;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;However im returning the value for only the computer im on, any thought on how I could get all the servers?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description></item><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>Re: How do I use Invoke-Command correctly?</title><link>http://powershell.com/cs/forums/thread/15185.aspx</link><pubDate>Thu, 08 Mar 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:15185</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;Ok I got the command to work, turns outs that when you use -connectionuri you have to specify &lt;a href="http://fqdn"&gt;http://fqdn&lt;/a&gt; of the server/powershell when running a remote powershell command.&amp;nbsp; However I have a new challenge.&lt;/p&gt;
&lt;p&gt;I have two variables:&amp;nbsp; $domainid and $server.&amp;nbsp; $domainid has the fqdn suffix of the server, like company.com&lt;/p&gt;
&lt;p&gt;$server has the server name like server01.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Is there a way to append the two variables together so that each server in the list has the fqdn appened to it.&amp;nbsp; Like for example,&amp;nbsp; server01.company.com and server02.company.com.&amp;nbsp; Basically I want to create a third variable that appends the fqdn to each server so that when you type in third variable you get:&lt;/p&gt;
&lt;p&gt;$variable3: &lt;/p&gt;
&lt;p&gt;server01.company.com&lt;/p&gt;
&lt;p&gt;server02.company.com&lt;/p&gt;
&lt;p&gt;What I want to do is call the third variable with -connectionuri http://..&amp;nbsp; Any thoughts??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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>