Browse Forum Posts by Tags

Showing related tags and posts for the Ask the Experts group. See all tags in the site
  • .net remote powershell with Exchange 2010 Cmdlets - Problem with "Script block literals are not allowed in restricted language mode or a Data section"

    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 "Get-Mailbox | Where-Object {$_.database -match "database"...
    Posted to PowerShell for Exchange (Forum) by OlivierR on 12-03-2010
    Filed under: remoting, Exchange, script block, remote, powershell, exchange 2010, .net
  • 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: Show a menu based on multiple variables!

    In my script I created a menu that allowed the user to restart a service on the server from within the powershell session. My idea was to use a if (condition) that showed the menu if the condition applied. I got it figured out though. I did this: if ((condition is true) -or (condition2 is true) -or ...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-15-2012
    Filed under: remoting, Exchange, remote, powershell, exchange 2010
  • Re: Add event logs to a transcript!

    Yes so I added the -append switch to the start-transcript. Also did a >> with get-eventlog so it would append that info to the info in the transcript. Problem is that it's throwing the error "unable to access the file as another person or process is all ready using it". So how would...
    Posted to PowerShell for Exchange (Forum) by jwhite on 02-20-2012
    Filed under: remoting, Exchange, script block, remote, powershell, exchange 2010, Powershell command:
  • 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:
  • Using send-mailmessage cmdlet...?

    I am trying to use the send-mailmessage cmdlet, but im runninng into a problem where I am getting a "Send-MailMessage : The remote certificate is invalid according to the validation procedure." error. I'm running the cmd like this: send-mailmessage -to <address> -from <address>...
    Posted to PowerShell for Exchange (Forum) by jwhite on 04-22-2012
    Filed under: remoting, Exchange, remote, powershell, powershell command:scripts, 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 1 (7 items)
Copyright 2012 PowerShell.com. All rights reserved.