netnerds.net
Home
Book
Links icon
GitHub Org GitHub Star Profile MVP Profile Twitch
About
Subscribe
  • Adding Toolbar Icons to Your PowerShell WPF GUI

    Jan 6, 2016 · 3 min read  ·
    Share on:

    This post builds on some previous post titled Use base64 for Images in WPF-based PowerShell Forms. Show-WpfIconExample.ps1, which can be found below and on github, demonstrates how to overlay the default PowerShell toolbar icon with an image that's been transformed to a base64 string to …


    Read More
  • ShowDialog() Sucks: Use ApplicationContext and Run Instead

    Jan 6, 2016 · 4 min read  ·
    Share on:

    Update Jan 7: Added KeyboardInterop so that TextBoxes will work. One of the lessons learned when making Popups and NotifyIcons in PowerShell and WPF is that the WPF window must be run the the proper context. I was tipped off to this by Denniver Reining's PowerShell / NotifyIcon article and Johnny J's "Doing a (C#) …


    Read More
  • My Very First Scripting Guys Article: Creating Pop-ups by Using PowerShell

    Nov 26, 2015 · 1 min read  ·
    Share on:

    So this happened about a month ago, but I've been out with the flu. Ed Wilson with Microsoft Scripting Guys invited me to write a few articles on WPF, and I excitedly said yes! In the first article of the series, I detail how to Create Pop-ups by Using PowerShell. The example used displayed local hard drive space. The …


    Read More
  • Use base64 for NotifyIcon in PowerShell

    Oct 5, 2015 · 2 min read  ·
    Share on:

    In addition to be able to use base64 for Images in WPF-based PowerShell Forms, you can also use base64 for icons as well. Essentially, you take the base64, convert it to a memory stream, draw an image from that stream, then convert the image to an icon. Finally, you assign the $notify.Icon this new variable. Just the …


    Read More
  • Display WPF Popups in Lower Right Corner of Screen using PowerShell

    Sep 20, 2015 · 3 min read  ·
    Share on:

    I've recently changed my mind on this, but will leave the previous post up in case you want to reposition a WPF popup. If you want a big window to popup in the lower-right corner of the screen, use a WPF Window. WPF Popups are chromeless, it's true, but they are also limiting in how you can move them around, and how …


    Read More
  • Icon Color Replacement Fun with PowerShell

    Sep 20, 2015 · 2 min read  ·
    Share on:

    I like to keep interfaces simple and tend to use icons in my GUI designs. Recently, when making a PowerShell GUI to alert myself to alarm status changes in vCenter, I decided to reuse the same icon over and over for different statuses, but I made them meaningful by dynamically changing the color. The Goal My ultimate …


    Read More
  • Use base64 for Images in WPF-based PowerShell Forms

    Sep 19, 2015 · 2 min read  ·
    Share on:

    I'm currently building a notification module to let me know when VMware vCenter alerts go off in my home lab. I plan to share it, and wanted to use a non-standard icon, but didn't want to require a separate download. I knew base64 would be the answer, and ultimately, some C# code from StackExchange helped me figure out …


    Read More

Chrissy LeMaire

SQL & PowerShell MVP. GitHub Star. Creator of dbatools. Need to oil my knees.

preorder

dbatools

dbatools is an awesome PowerShell module that helps you migrate entire instances with a single command, plus a whole lot more.

available from dbatools.io and github

dbachecks

dbachecks validates SQL Server environments using crowdsourced DBA checklists and outputs to Power BI and is available on github.com 📊

recent posts

  • Rebuilding a Proxmox cluster node
  • Default PowerShell Paths (PSModulePath) on GitHub Runners
  • Add existing directory storage to proxmox without wiping it first
  • InspecTools on Offline Windows
  • Chef inspec: Unable to detect your platform
  • Migrating my WordPress sites to GitHub Pages
  • URL Shortening/Redirects using GitHub Pages and Jekyll
  • My Windows Terminal Retro Theme

categories

sql-server 115 powershell 106 general 63 security 58 windows 47 sharepoint 41 active-directory 37 linux 31 networking 30 vbscript 30 apple 22 virtualization 22 iis 19 apache 7 exchange 7
All Categories
active-directory37 apache7 apple22 asp-net2 bi4 db24 exchange7 general63 github3 iis19 linux31 livestreaming4 lync2 networking30 oracle1 powershell106 security58 sharepoint41 sql-server115 vbscript30 virtualization22 windows47 wpf7
[A~Z][0~9]
 

Copyright 2003 -  Chrissy LeMaire. All Rights Reserved