EXchange 2007 Install and Configure Notes

October 18, 2007

Tips in Powershell

Filed under: Uncategorized — Preetam @ 6:10 am

I thought I bring in more information about powershell. Since starting windows2008 powershell comes inbuilt and we must be preparing to use it in day-to-day operations. One-liners which i felt are our day-to-day have been posted here. Hope will be helpful to someone.

HOW TO GET THE ENV-PATH SET IN THE SYSTEM?

PS Env:\> Get-Item path | Format-Table -Wrap

Name                           Value
—-                           —–
Path                           C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPower
                               Shell\v1.0;C:\Program Files\QuickTime\QTSystem\

HOW TO WRITE A SIMPLE FUNCTION TO OPEN NOTEPAD?

function np {Invoke-Item C:\WINDOWS\NOTEPAD.EXE}

HOW TO GET SERVICE AND IT’S STATUS?

Get-Service | ?{$_.name -like “*Exchange*”} | sort-object Status | Format-Table Name,displayname,status -AutoSize

ScreenShot008

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: