-
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"...
-
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...
-
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...
-
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...
-
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/*"...
-
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*"} ...
-
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...
-
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...
-
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:
-
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 ...