PowerShell Scripts, Tips, Expert Advices, Forums, and Resources

Geek Sync Live

Welcome to PowerShell.com, the educational and community site for Windows PowerShell People. Get a quick overview.

Latest Blog Posts

07-31-2015 - PowerTip: Download Links from Webpage with PowerShell
07-31-2015 - Change ISE Zoom Level
07-31-2015 - What’s My PID?

As a Powershell.com member you will have access to:

  • Daily PowerShell tips written by Microsoft MVPs and other leading Windows PowerShell experts
  • Free Windows PowerShell advice and training provided by Microsoft MVPs and other leading Windows PowerShell experts
  • Access to leading Windows PowerShell blogs
  • A free ebook, Mastering PowerShell, written by Microsoft MVP Dr. Tobias Weltner
PowerTip of the Day

Change ISE Zoom Level

The PowerShell ISE sports a zoom slider at its lower right edge, and you can control this slider with PowerShell code.

So you could set defaults for it in your $profile script:

$psise.Options.Zoom = 120

Or, write some code to keep your colleagues entertained:

#requires -Version 2

$zoom = $psise.Options.Zoom

# slide in
for ($i = 20; $i -lt 200; $i++)
  $psise.Options.Zoom = $i

# slide out
for ($i = 199; $i -gt 20; $i--)
  $psise.Options.Zoom = $i

# random whacky
1..10 | 
ForEach-Object { 
  $psise.Options.Zoom = (Get-Random -Minimum 30 -Maximum 400)
  Start-Sleep -Milliseconds (Get-Random -Minimum 100 -Maximum 400)

$psise.Options.Zoom = $zoom 

Twitter This Tip! ReTweet this Tip!

Copyright 2012 PowerShell.com. All rights reserved.