Showing results for ISE - Scripting Blog [archived]

Nov 9, 2015
0
0

PowerTip: Change PowerShell ISE Foreground Color

Doctor Scripto
Doctor Scripto

Summary: Programatically change the foreground color in the Windows PowerShell ISE. How can I change the foreground color in the Windows PowerShell ISE? Use $Host.UI.RawUI.ForegroundColor and assign a new color. For example, to change it to cyan, use:$Host.UI.RawUI.ForegroundColor = 'cyan'

Scripting Guy!Windows PowerShellPowerTip
Nov 9, 2015
0
0

Change Display Output Colors in PowerShell ISE

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about changing the output console colors in the Windows PowerShell ISE.Microsoft Scripting Guy, Ed Wilson, is here. One of the things I like about using the Write-Host cmdlet is that I can change the color of a line that writes to the Windows PowerShell console. But, what if I want to change the en...

Scripting Guy!Windows PowerShellISE
Nov 6, 2015
0
0

PowerTip: Find if Variable Is Array

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to find if a variable is an array.  How can I use Windows PowerShell to find if a variable contains an array?  Use the –is operator, and test to see if it is a type of [array], for example: $a = 1,2,4,5,6,7 $a -is [array]

Scripting Guy!Windows PowerShellISE
Nov 4, 2015
0
0

PowerTip: Use PowerShell to Mount ISO Image

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to mount ISO images.  How can I use Windows PowerShell to mount an ISO image so I can see what it contains?  Use the Mount-DiskImage cmdlet and specify a path to the ISO file, for example: Mount-DiskImage -ImagePath C:\Data\en_office_professional_plus_2016_x86_x64_dvd.iso

Scripting Guy!Windows PowerShellISE
Mar 6, 2015
0
0

Don’t Script: Create PowerShell Snippets

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating custom Windows PowerShell snippets.  Hey, Scripting Guy! Thank you for yesterday's blog post, Don’t Write Scripts: Use Snippets. I like the idea of having access to Windows PowerShell script snippets. But I used to create my own snippets. It made it easier for me to work, and I coul...

Scripting Guy!Windows PowerShellscripting techniques