<?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' matching tags 'Exchange 2010', 'Powershell command:', and 'remoting'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=app:forums&amp;tag=Exchange+2010,Powershell+command:,remoting&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'app:forums' matching tags 'Exchange 2010', 'Powershell command:', and 'remoting'</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>Specify multiple event id's in event logs..</title><link>http://powershell.com/cs/forums/thread/16764.aspx</link><pubDate>Tue, 29 May 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16764</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to verify transport backpressure and want to display it in a nice format.&amp;nbsp; For some reason I cna&amp;#39;t get the columns to be closer together, also want to filter by the event id&amp;#39;s mentioned below instead of the details in the message.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Im using the following syntax:&lt;/p&gt;
&lt;p&gt;Can anyone help me here?&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;$time = new-timespan -hours 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;Get-WinEvent -ComputerName $server -ErrorAction SilentlyContinue -FilterHashtable @{Logname=&amp;#39;application&amp;#39;;Providername=&amp;#39;Msexchangetransport&amp;#39;;Message=&amp;#39;The resource pressure&amp;#39;} |?{$_.timecreated -eq &amp;quot;$time&amp;quot;} | select Timecreated,ProviderName,EventID,Message | FT Values -autosize -wrap&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;&lt;span style="font-family:Courier New;color:#5f9ea0;font-size:small;"&gt;Instead of specifying the details of the message in the events&amp;nbsp;I want to filter by event id&amp;#39;s : 15004,15005,15006, and 15007.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/p&gt;</description></item><item><title>Matching a send connector to a next hop queue?</title><link>http://powershell.com/cs/forums/thread/16312.aspx</link><pubDate>Tue, 01 May 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16312</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;If I run a get-queue in exchange 2010 I see all the queues and the next hop that those queues are going too.&amp;nbsp; What im wanting to be able to do is match the queue to the send connector its using.&lt;/p&gt;
&lt;p&gt;SO basically like, queue1 is trying to connect to mail.company.com and the next hop to get to mail.company.com is using address 10.10.10.1, as an example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you run the get-queue you see the nexthopdomain that its going to.&amp;nbsp; How would I show the specific send-connector that that queue is using.&lt;/p&gt;
&lt;p&gt;Example like 10.10.10.1 is using send connector gateway-internet.&amp;nbsp; If I run a get-sendconnector is will see what send connectors are providing transport to the specific addresses.&amp;nbsp; I basically want to show them together,&amp;nbsp; any thoughts??&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/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>Add event logs to a transcript!</title><link>http://powershell.com/cs/forums/thread/14694.aspx</link><pubDate>Wed, 15 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14694</guid><dc:creator>jwhite</dc:creator><description>&lt;p&gt;I added the transcript option to my script.&amp;nbsp; Using the start-transcript.&amp;nbsp; What I want is to have event logs to be added into the transcrpt.&amp;nbsp; I know you can use get-eventlog -logname application...&amp;nbsp; But I want to add specific logged events into the transcript.&amp;nbsp; Like,&lt;/p&gt;
&lt;p&gt;start-transcript -append eventlogs, something like that.&amp;nbsp; Any thoughts?&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></channel></rss>