Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - change fonts permanently for ALL colors

Reply
 
Old 02-25-2007   #1 (permalink)
Robert Ludig
Guest


 
 

change fonts permanently for ALL colors

using $Host.PrivateData.*ColorName* = "Color"

I can change the following colors of the powershell:

DebugForeGroundColor
DebugBackGroundColor
ErrorForeGroundColor
ErrorBackGroundColor
ProgressForeGroundColor
ProgressBackGroundColor
VerboseForeGroundColor
VerboseBackGroundColor
WarningForeGroundColor
WarningBackGroundColor

Unfortunately they are only changed for the scope of the session. As
soon as I reopen the powershells these settings are gone. How can I
change the colors permanently for all colors ?


My System SpecsSystem Spec
Old 02-25-2007   #2 (permalink)
RichS
Guest


 
 

RE: change fonts permanently for ALL colors

Put the changes in your profile then they will be applied every time to start
PowerShell
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Robert Ludig" wrote:

> using $Host.PrivateData.*ColorName* = "Color"
>
> I can change the following colors of the powershell:
>
> DebugForeGroundColor
> DebugBackGroundColor
> ErrorForeGroundColor
> ErrorBackGroundColor
> ProgressForeGroundColor
> ProgressBackGroundColor
> VerboseForeGroundColor
> VerboseBackGroundColor
> WarningForeGroundColor
> WarningBackGroundColor
>
> Unfortunately they are only changed for the scope of the session. As
> soon as I reopen the powershells these settings are gone. How can I
> change the colors permanently for all colors ?
>
>

My System SpecsSystem Spec
Old 02-25-2007   #3 (permalink)
SQL Guru
Guest


 
 

Re: change fonts permanently for ALL colors

That should work IF it is a small file. It does it by reading the entire
file and displaying the last 5 lines. If your file is 2 GB, then it will
read all 2 GB before giving you the last 5 lines. I haven't found the best
way to implement true tail like functionality in PSH. I am guessing that it
would require using .Net.

Thanks,

SQL Guru


"RichS" <RichS@discussions.microsoft.com> wrote in message
news:0EE096F3-F5AB-49D8-9D8E-547D6B9B37A6@microsoft.com...
Put the changes in your profile then they will be applied every time to
start
PowerShell
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Robert Ludig" wrote:

> using $Host.PrivateData.*ColorName* = "Color"
>
> I can change the following colors of the powershell:
>
> DebugForeGroundColor
> DebugBackGroundColor
> ErrorForeGroundColor
> ErrorBackGroundColor
> ProgressForeGroundColor
> ProgressBackGroundColor
> VerboseForeGroundColor
> VerboseBackGroundColor
> WarningForeGroundColor
> WarningBackGroundColor
>
> Unfortunately they are only changed for the scope of the session. As
> soon as I reopen the powershells these settings are gone. How can I
> change the colors permanently for all colors ?
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Permanently change a single file's icon General Discussion
Change font permanently in Word Pad? General Discussion
How can i change colors of... General Discussion
Re: Permanently change Search agent? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46