PS Simple Scripts

January 12, 2012

Customizing EMS for Exchange 2010

Filed under: General — telnet25 @ 5:49 pm

If you have not customize the EMS in your environment for your profile you may want to make quick adjustments as below to make the EMS work more efficient for yourself. if you have the PS profile the notepad will open it for you as shown below.

image

if you do not have it, you can do quick test

Test-Path $profile

image

If you do not have it you get it “false”

image

and to create one

New-Item -path $profile -type file –force

This will force to create folder called “PowerShell” under my documents directory

image

Now short and sweat modifying profile PS1 is typing below PS

notepad.exe $PROFILE

ScreenShot009

Okay you can copy and paste the information below…

And below I have created folder called on my C drive Admin and subfolder Script and told my profile to connect there anytime it starts. The rest you can play with and adjust based on your preferences.

$Shell = $Host.UI.RawUI
$Shell.WindowTitle=”E15 PowerWay”
$Shell.BackgroundColor=”Black”
$Shell.ForegroundColor=”White”
$size = $Shell.WindowSize
$size.width=125
$size.height=50
$Shell.WindowSize = $size
$size.width=110
$size.height=300
Set-Location C:\admin\Scripts

Now have configured your PS profile based on your needs and ready to play with some of simple scripts which will help you administration of your environment..

References

Best,

Respectfully,
Oz Casey, Dedeal ( MVP north America)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
http://smtp25.blogspot.com/ (Blog)
https://telnet25.wordpress.com/ (Blog)

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.