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
  • Getting the information of a server

    Hello all, I'm currently trying to make a powershell script that gives me the following information in an e-mail with an XML attachment that contains the asked information This is the information I need to get: Computername - How much space there is left/free - How much space there is used Memory...
    Posted to PowerShell for Exchange (Forum) by Vedanta on 02-16-2011
    Filed under: performance, Exchange, powershell, exchange 2010, Exchange 2007
  • How to view databases in a DAG...

    I'm wanting to be able to see all the databases in a database availibility group. I know I can do get-databaseavailibilitygroup "dag name" | FL and see the details of that dag. How would I be able to see the databases that are being hosted in that dag? Any ideas? Thanks...
    Posted to PowerShell for Exchange (Forum) by jwhite on 05-25-2011
    Filed under: powershell, exchange 2010
  • PSSnapins for Exchange 2010 (BPOS)

    Afternoon all, I was hoping someone could suggest what I can do or how to solve my problems running powershell cmdlets from my Win 7 Pro desktop machine to retrieve number of users, for each database or each server? Unfortunately our migration to BPOS was from exchange 2003 directly to exchange 2010...
    Posted to PowerShell for Exchange (Forum) by j0seg on 05-31-2011
    Filed under: ImportPSSession, BPOS Migration, exchange 2010, Get-ExchangeServer
  • Re: Need to export list of ActiveSync-enabled users

    The Get-CasMailbox cmdlet in Exchange 2007 and 2010 will help here. Here are two possiblilities, one using the Identity Property, another using the DistinguishedName property Identity: Get-CasMailbox -Filter {ActiveSyncEnabled -eq $true} | Where-Object { $_.Identity -LIKE "example.com/Sales/*"...
    Posted to PowerShell for Exchange (Forum) by ackbarr on 06-14-2011
    Filed under: exchange 2010, Exchange 2007, activesync
  • Re: How to view databases in a DAG...

    I think this will give your the information you need. You will see the database name the server hosting the database and the list of activation preference for comparision. Get-exchangeserver | Where {$_.AdminDisplayVersion -Like "Version 14*" -and $_.ServerRole -Like "Mailbox*"} ...
    Posted to PowerShell for Exchange (Forum) by Phil Braniff on 11-05-2011
    Filed under: exchange 2010, DAG
  • Having trouble changing display name

    Hi, we have multiple DLs that we want to change the displayname to. for instanace our current display name says "yahoo users" and we want to create a simple shell to change/replace displayname "yahoo users" to "yahoo all mail users" I tried acheiving this through running...
    Posted to PowerShell for Exchange (Forum) by ridvon on 01-30-2012
    Filed under: Exchange, exchange 2010
  • 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: 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
Page 1 of 5 (44 items) 1 2 3 4 5 Next >
Copyright 2012 PowerShell.com. All rights reserved.