netnerds.net
Home
AI Integration Series
AI Usage
About
Subscribe
github bluesky youtube github-star rss
  • Adding Toolbar Icons to Your PowerShell WPF GUI

    calendar Jan 6, 2016 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    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

    calendar Jan 6, 2016 · 5 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    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
  • PowerShell Invoke-RestMethod / CloudFlare API v4 Code Sample

    calendar Dec 29, 2015 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    If you're looking to create your own CloudFlare API v4-based PowerShell module, and would like some syntax examples, here's a simplified breakdown of my CloudFlareDynDns module on github, which I discuss in "Use PowerShell and CloudFlare API v4 to Dynamically Update CloudFlare DNS to your External IP".

     1# …

    Read More
  • Use PowerShell and CloudFlare API v4 to Dynamically Update CloudFlare DNS to your External IP

    calendar Dec 29, 2015 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy
    Got a homelab and miss how DynDNS used to be free? Using PowerShell and a CloudFlare hosted domain, you can emulate similar functionality for free using PowerShell and a Scheduled Task. If you're looking for a DDNS client that you can run on a router, check out CloudFlare's ddclient or Scott Helme's post Replacing …
    Read More
  • My Very First Scripting Guys Article: Creating Pop-ups by Using PowerShell

    calendar Nov 26, 2015 · 1 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    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

    calendar Oct 5, 2015 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    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

    calendar Sep 20, 2015 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy
    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

    calendar Sep 20, 2015 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    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

    calendar Sep 19, 2015 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy
    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
  • Import-CsvToSql: Super Fast CSV to SQL Server Import PowerShell Module

    calendar Sep 6, 2015 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    A while back, I wrote about High-Performance Techniques for Importing CSV to SQL Server using PowerShell. Earlier today, I released a PowerShell module, CsvSqlImport.psm1, which puts that post into practice.

    Using this module, it's possible to import over 90,000 records a second in optimized environments. In addition …


    Read More
    • ««
    • «
    • 9
    • 10
    • 11
    • 12
    • 13
    • »
    • »»

Chrissy LeMaire

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

GenAI book

Buy the MEAP at manning.com for 45% off with code gaipbl45

AI Integration Series

  • Automation with AI Toolkit + GH Models
  • Getting Started with AI for PowerShell
  • Asking Tiny Questions: Local LLMs
  • Local Models Demystified
  • Asking Bigger Questions: Remote LLMs
  • PDF Text to SQL Data with OpenAI
  • Document Classification in SharePoint
  • Azure Functions Doc Parser

dbatools book

Now available in bookstores and amazon 🥳 Buy it at manning.com for 50% off with code bldbatools50

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 📊

Find me

Find me on Bluesky

recent posts

  • Document Intelligence with Azure Functions: A Practical Implementation
  • Automating Document Classification in SharePoint with Power Platform and AI
  • Asking Bigger Questions: Remote LLMs for Automation Engineers
  • AI Integration for PowerShell Developers: Getting Started with PSOpenAI and GitHub Models
  • AI Automation with AI Toolkit for VS Code and GitHub Models: A Visual Guide
  • Asking Tiny Questions: Local LLMs for PowerShell Devs
  • Local models mildly demystified
  • Let's talk about anti-AI slop: my plead for schools to teach AI literacy

categories

powershell 128 sql-server 123 general 64 security 60 windows 47 sharepoint 42 active-directory 37 linux 31 networking 30 vbscript 30 apple 24 virtualization 22 iis 19 genai 14 github 10
All Categories
active-directory37 ai1 apache7 apple24 asp-net2 azure5 azure-functions1 bi4 db24 devcontainers1 exchange7 genai14 general64 github10 iis19 linux31 livestreaming4 lync2 mastodon4 networking30 oracle1 powershell128 security60 sharepoint42 sql-server123 typescript1 vbscript30 virtualization22 windows47 wpf7
[A~Z][0~9]
 

Copyright 2003 -  Chrissy LeMaire. All Rights Reserved