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.
if you do not have it, you can do quick test
Test-Path $profile
If you do not have it you get it “false”
and to create one
New-Item -path $profile -type file –force
This will force to create folder called “PowerShell” under my documents directory
Now short and sweat modifying profile PS1 is typing below PS
notepad.exe $PROFILE
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
- Windows PowerShell Manual
- http://technet.microsoft.com/en-us/library/ee692764.aspx
-
Windows PowerShell Profiles
- http://msdn.microsoft.com/en-us/library/windows/desktop/bb613488%28v=vs.85%29.aspx
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