Friday, June 5, 2009

Get-ExchangeServer PS with PowerGUI

Here is another PS Script to get to know the version of exchange servers in your SMTP org. The reason I am posting these PS scripts one by one to show you guys how easy your life will be with PS and PowerGUI, when you get a hold off it  and you can always customize the powerGUI the way you like and increase your productivity and make daily task pretty easy for yourself.

I believe powerGUI is one of the ***Best*** tool out there to make your life easy and you need to take advantage of this powerful tool and learn skill you need to get the work done.

PS Script

image


Get-ExchangeServer | Format-Table Name, *Version*

Open PowerGUI Script Editor this time and copy and paste the above PS Script as shown below

image

when you hit run or CTRL + F5 here is output

image

Now you verified the PS script is working and you wish to move this to your script library , you open this time PowerGUI and drill down to PS Scripts folder we created earlier ( See other post in PS section of my blog)

  • make right click
  • new ,script node
  • Give it a name as shown below
  • Remember use

image

as you see the result pane on the right hand

image

One last thing I would like to mention on the result pane, you can always make right click and choose more filed to be added into script

image

Even click more to get more options, as you see my scripting folder is getting more content based on my needs and you can always export them if you are willingly to share (-:

image

PS is great, PowerGUI rocks and to be honest not having PS scripting skill in couple more years will “Hurt” you (-:

Cheers,

Oz Casey Dedeal

MVP (Exchange)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +

Http://smtp25.blogspot.com (Blog)

Https://telnet25.spaces.live.com (Blog)

Https://telnet25.worldpress.com (Blog)

Wednesday, June 3, 2009

Get-ExchangeServer | Get-MailboxDatabase

Here is another good PS Script ,this one will give you mailbox database and the mailbox count in each database……

Name: Get-ExchangeServer Get-MailboxDatabase ( or anything you like)

Get-ExchangeServer | Get-MailboxDatabase | select Identity,@{n='MailboxeCount';e={@(Get-Mailbox -database $_.identity).count}}
image

Download click on the PS Script

image

image

image

All credits goes to Shay Levy

Oz Casey Dedeal

MVP (Exchange)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +

Http://smtp25.blogspot.com (Blog)

Https://telnet25.spaces.live.com (Blog)

Https://telnet25.worldpress.com (Blog)

Get-MailboxDatabase -Status

I will list some of basic PS scripts on my blog site and I also show you how to build and shape your own PowerGUI tool, as I said several times PowerGUI is incredible powerful and easy to use, the best part is you don't have to know much to get going………

First download and install PowerGUI

Second When you open power GUI create a folder under Exchange anywhere and call it anything you like , I called mine “PS Scripts”

image

Now I will show you how to create ready to go PS scripts to make your daily job easy and once you understand you can use your imagination and extend your own script folder.

Now on the folder

  • Right click
  • new
  • Script node

image

This is what you will get , let me explain what # does actually within the PS Script, it means “comment out” click here for more info

image

Name=Get-MailboxDatabase –Status

copy and paste the PS code in the body as shown below


Get-MailboxDatabase -Status Format-Table Name, Server, Mounted

image

Download here

image

image

You can easily use same PS Script on PowerGUI Script editor

image

Please pay attention to comment out section I tried to give you more information

Now you know how to make PS scripts easy work and enjoy the power of PS with PowerGUI

I will post least one more PS script for everyone so you can add easily your your tool box within the PowerGUI and imagine soon you will have everything you need click away from you

All credits goes to PowerGUI team and thanks million for this incredible tool

Cheers,

Oz Casey Dedeal

MVP (Exchange)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +

Http://smtp25.blogspot.com (Blog)

Https://telnet25.spaces.live.com (Blog)

Https://telnet25.worldpress.com (Blog)

POWER GUI PowerShell

You might have listened many people saying, learn PS (power Shell) if you are going to be administering Exchange and AD from now on you have to start learning PS and yes this is true every ITPro will have to know some basic and advance PS when it comes to managing both environment.

You think you are late and what are you going to do, you are not even scripting person???

don't worry here is the best tool I have ever seen so far, which will get you going fast , PowerGUI

image

Click here to download power GUI

image

I will start blogging about how to use power GUI with many shortcuts mostly Exchange and Active directory management, it would be great idea to register (free) on power GUI website and start spending time on their forums. You will appreciate power GUI and be amazed what you can do with it (-:

Cheers,

Oz Casey Dedeal

MVP (Exchange)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +

Http://smtp25.blogspot.com (Blog)

Https://telnet25.spaces.live.com (Blog)

Https://telnet25.worldpress.com (Blog)