Browse Forum Posts by Tags

Showing related tags and posts for the Ask the Experts group. See all tags in the site
  • Performance Difference between InvokeCommand and ImportSession

    I have a C# application that issues commands and scripts (1 or 2 liners) to an Exchange 2010 through remote powershell (Configuration "Microsoft.Exchange"). I found two ways to do this - create a remote session and then (a) using InvokeCommand on that session with my scriptblock or (b) ImportSession...
    Posted to PowerShell for Exchange (Forum) by kumar on 11-10-2010
    Filed under: performance, InvokeCommand, remoting, ImportPSSession
  • Recycling an IIS AppPool in powershell...

    I have put together a script that pulls a list of servers in the array and then tests outlook and owa connectivity to each. I also added a menu that allows a restart of selected services on all servers that show an error in connectivity. What im wanting to do is be able to recycle or restart an IIS AppPool...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-13-2012
    Filed under: InvokeCommand, remoting, ImportPSSession, Exchange, script block, powershell, exchange 2010, array
  • Show a menu based on multiple variables!

    I'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...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-14-2012
    Filed under: InvokeCommand, remoting, Exchange, script block, remote, powershell, exchange 2010, Powershell command:
  • Re: Add event logs to a transcript!

    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. So what I did was this: start-transcript output file is C:\transcript.txt Run cmdlet, run test stop-transcript get-eventlog >> C...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-28-2012
    Filed under: InvokeCommand, remoting, Exchange, script block, powershell, exchange 2010, Powershell command:
  • Need to grab Exceptions from a test-outlookconnectivity test in powershell...

    I have a variable: $result = test-outlookconnectivity -protocol:http -trustanysslcert:$true -verbose What I want to do with it is pull any errors exceptions from the verbose output, and store them into a seperate variable so that I can use it how I want. So as an example: $error = @() $result = test...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-29-2012
    Filed under: InvokeCommand, script block, remote, powershell, exchange 2010, Powershell command:
  • PS Script doesn't work in a batch file

    Hi, I have a script that I'm trying to run from a batch file so I can schedule it to run every morning. If I execute the script in PS, it works find and creates a csv file and email it to me, but when I run it from a batch file it opens PS but it doesn't fetch data and PS closes. I have other...
    Posted to PowerShell for Exchange (Forum) by Chang_cho on 03-07-2012
    Filed under: InvokeCommand, exchange 2010
  • How do I use Invoke-Command correctly?

    Im trying to run the command test-outlookconnectivity -protocol:tcp or http -trustanysslcert:$true. I'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. As stated in this article: http://technet.microsoft.com/en-us...
    Posted to PowerShell for Exchange (Forum) by jwhite on 03-07-2012
    Filed under: InvokeCommand, remoting, Exchange, script block, remote, powershell, exchange 2010, Powershell command:
  • Re: How do I use Invoke-Command correctly?

    Ok I got the command to work, turns outs that when you use -connectionuri you have to specify http://fqdn of the server/powershell when running a remote powershell command. However I have a new challenge. I have two variables: $domainid and $server. $domainid has the fqdn suffix of the server, like company...
    Posted to PowerShell for Exchange (Forum) by jwhite on 03-08-2012
    Filed under: InvokeCommand, remoting, ImportPSSession, script block, remote, powershell, exchange 2010, Powershell command:
  • Run a test-mailflow within the invoke-command?

    I'm trying to run the test-mailflow cmdlet, within the invoke-command cmdlet. I'm on a Client Access Server and I can issue the test-mapiconnectivity cmdlet against a user. However in order to run the test-mailflow cmdlet, I need to be on the mailbox server that the user is on. I'm referencing...
    Posted to PowerShell for Exchange (Forum) by jwhite on 07-31-2012
    Filed under: InvokeCommand, remoting, Exchange, remote, exchange 2010, Powershell command:, exchange2010, powershellshell
  • Re: Recycling an IIS AppPool in powershell...

    This is what I'm looking for. Ill post again if i have issues. Cheers.
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-14-2012
    Filed under: InvokeCommand, remoting, Exchange, remote, powershell, exchange 2010, array, Powershell command:
Page 1 of 2 (11 items) 1 2 Next >
Copyright 2012 PowerShell.com. All rights reserved.