netnerds.net
Home
AI Integration Series
AI Usage
About
Subscribe
github bluesky youtube github-star rss
  • Enumerate file structure within detached MDF database file using SMO

    calendar Jan 7, 2015 · 1 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    While researching how connect to a detached MDF and read the internal file structure of the internal files, including LDF files, I kept seeing suggestions for using the undocumented DBCC command DBCC checkprimaryfile. Initially, my code looked like this:

     1# SQL Server is required to read the file contents
     2 …

    Read More
  • Create Scheduled Task or Scheduled Job to Indefinitely Run a PowerShell Script Every 5 Minutes

    calendar Jan 5, 2015 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    Here are two straight-forward ways to create Scheduled Tasks within Windows using PowerShell. One script creates a PowerShell Scheduled Job, and the other creates a classic Windows Scheduled Task. You can read about the differences here. PowerShell v3 and above required.

    Create a Scheduled Job

    The following script …


    Read More
  • Workaround for SMO Bug: urn could not be resolved at level OleDbProviderSetting

    calendar Jan 3, 2015 · 1 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    Microsoft ConnectM isn't letting me sign in to post this workaround, but I just ran into a bug with the OleDbProviderSettings within SMO.

    <img
      loading="lazy"
      decoding="async"
      alt="smobug"
      
        class="image_figure …</picture></figure></a></p>
    

    Read More
  • NetScaler VPX Kinda Quick Start

    calendar Dec 11, 2014 · 4 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    Using a NetScaler within home lab is beneficial, mostly because you can use the same IP over and over for different services. Imagine providing VPN, Lync Autodiscover, Exchange Autodiscover, and SharePoint all over port 443. That's what a NetScaler VPX can do for you, for free.

    Below is a tutorial that will help you …


    Read More
  • About Invoke-Locate, a PowerShell port of GNU findutils' locate and updatedb.

    calendar Dec 1, 2014 · 5 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    Tonight, I published Invoke-Locate.ps1 to ScriptCenter because I was tired of mounting my Windows drive to my Linux servers to quickly and reliably find files. Originally, it was going to be a small script, but then I decided to trick it out, add an installer and automatic Task Scheduling to run updatedb.

    The installer …


    Read More
  • Downgrade SQL Server Cluster from Enterprise to Standard

    calendar Sep 8, 2014 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    I'm currently working on a PowerShell/SQL set of scripts to ease SQL Server Migrations. A few of the scripts have been posted to Microsoft's ScriptCenter. Recently, one of the ScriptCenter visitors asked:

    Can this script be used to backup all server configuration and restore at a later date. The use case I have is that …


    Read More
  • PowerShell: Create Human-readable Shortcuts to IIS Log File Directories

    calendar Jul 18, 2014 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    About 8 years ago, I wrote a blog post that provided a VBScript to create easy-to-read shortcuts to IIS Log directories. W3SVC56 just wasn't helpful enough to identify which website logs to which directory.

    Today, I ported that same script to PowerShell. I'm too lazy to explain, so this is what it does: …


    Read More
  • Batch Resize Photos in Linux

    calendar Jul 16, 2014 · 1 min read  ·
    Share on: mastodon facebook linkedin bluesky copy
    Oops! I forgot to tell my mom to resize her photos before uploading them to RealCajunRecipes.com. We had colossal 7MB+ images floating around on the web server, and SSD space doesn't come cheap. No problem, I just installed ImageMagick, backed up my directories, then ran the following command which finds all the 1MB+ …
    Read More
  • Import Large CSVs into SQL Server Using PowerShell

    calendar Jul 4, 2014 · 6 min read  ·
    Share on: mastodon facebook linkedin bluesky copy
    A buddy of mine was running into issues importing a 1 GB CSV of Longitudes and Latitudes available from geonames.org. The CSV contains over 9 million rows, and no matter what he did, DTS/SSIS would not import the data because of conversion issues. That's actually been happening to me a lot lately, too, so I find myself …
    Read More
  • PowerShell: Per-user VMware Thinapp Registration Login Script

    calendar Jun 30, 2014 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    I'm not super familiar with ThinApping, but converted portions of this VMware login script at the request of a consultant.

    I tried to automate the script a bit more than the one from VMware's blog. Their script required that you put in the path to each EXE. This script will find all exes within a directory and register …


    Read More
    • ««
    • «
    • 12
    • 13
    • 14
    • 15
    • 16
    • »
    • »»

Chrissy LeMaire

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

GenAI book

Buy now 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

  • Have You Considered Not Using SQL Server High Availability?
  • PowerShell Output Redirection with AI CLIs
  • dbatools is moving to Azure Trusted Signing
  • 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

categories

powershell 131 sql-server 125 general 64 security 61 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 ai2 apache7 apple24 asp-net2 azure5 azure-functions1 bi4 db24 devcontainers1 exchange7 genai14 general64 github10 iis19 linux31 livestreaming4 lync2 mastodon4 networking30 oracle1 powershell131 security61 sharepoint42 sql-server125 typescript1 vbscript30 virtualization22 windows47 wpf7
[A~Z][0~9]
 

Copyright 2003 -  Chrissy LeMaire. All Rights Reserved