netnerds.net
Home
AI Integration Series
AI Usage
About
Subscribe
github bluesky youtube github-star rss
  • VBScript: Stop Dictionary FTP Attacks in IIS using VBScript

    calendar Oct 31, 2006 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    Spencer Ruport of netortech.com modified my FTP ban script into one that stops dictionary attacks. And he chooses not to ban via the problematic IIS way but instead creating a bad route for the offending IP address. Pretty darn ingenius.

    Set objFTPSVC = GetObject("IIS://localhost/MSFTPSVC") Set objFSO = …


    Read More
  • VBSCRIPT: Add New Domain's Admins to Local Administrators Programmatically

    calendar Jul 28, 2006 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    In order for Active Directory Migration Tool (ADMT) to install its Agent on a newly migrated computer, the user running the ADMT tool must have local Administrator access. Otherwise, the error log shows something similar to the following:

    WRN1:7290 Processor architecture for machine \NT4MACHINE is unknown, Error …


    Read More
  • VBScript: Sort Array

    calendar Jul 28, 2006 · 1 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    Found this code and wanted to bookmark it... from VisualBasicScript.com's Forums

    Function fSortArray(aSortThisArray) Set oArrayList = CreateObject("System.Collections.ArrayList" ) For iElement = 0 To UBound(aSortThisArray) oArrayList.Add aSortThisArray(iElement) Next oArrayList.Sort set fSortArray = …


    Read More
  • VBScript: Traverse Directories & Subdirectories Snippet

    calendar Jul 20, 2006 · 1 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    This snippet has come in handy quite a few times for me...

    Call ListFolderContents("C:\Windows\System32\Drivers")

    Sub ListFolderContents(path) set fs = CreateObject("Scripting.FileSystemObject") set folder = fs.GetFolder(path) Msgbox folder.path

    For each item in folder.SubFolders …


    Read More
  • IIS: Instantly Ban IPs Attempting to Login to MS-FTP as Administrator

    calendar Jul 3, 2006 · 5 min read  ·
    Share on: mastodon facebook linkedin bluesky copy
    UPDATE 12/18/06: The startup script has been modified slightly (cscript.exe was changed to wscript.exe). Now, console users will no longer encounter a blank black box upon login. UPDATE 11/21/06: Now that banning at the IP level has been added to the script, offending users are completely banned before they can even …
    Read More
  • ASP: Sustain Remote Cookie Sessions in an ASP/VBScript

    calendar Apr 27, 2006 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy
    I dug up this cold from my old netnerds blog. For Googlers wondering if sustaining a remote session is possible, the answer is yes; I've sustained remote cookie sessions using both ASP & VBScript. I've provided simplified code below. It should be self explanatory. If not, drop me a comment and I'll explain it. …
    Read More
  • VBScript: Ban IPs in IIS Programatically

    calendar Apr 26, 2006 · 1 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    I used the following code a while back as part of a solution to automate the banning of spammers via their IP address.

    'Here, we will pretend this is an imported list Dim XMLarr(1) XMLarr(0) = "65.19.238.21" XMLarr(1) = "198.31.175.100"

    Set objIIS = GetObject("IIS://localhost/w3svc") …


    Read More
  • VBScript: Delete ALL E-mails from the Exchange 2003 Queue

    calendar Apr 16, 2006 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    Recently my Exchange server got pounded by spammers that were attacking my NDR (non delivery report) capabilities. Turning off NDRs helped 75% and I explored Exchange quite a bit along the way to figure out that last 25%.

    It seems that I had 180 emails stuck in my queue. I was looking at my logs and ethereal and it …


    Read More
  • VBScript: Monitor Processes and Restart if Necessary

    calendar Apr 13, 2006 · 2 min read  ·
    Share on: mastodon facebook linkedin bluesky copy
    This may only be useful for wscript.exe so it may not have universal appeal but I'll list it anyway. The first script is to be inserted at the top of the wscript file you'd like to monitor. The second file is to be run as a scheduled task. SQL Server is used to keep track of the PIDs. SQL Server Express is free so you …
    Read More
  • VBScript: Check for Low Disk Space and Report to Event Viewer

    calendar Apr 10, 2006 · 3 min read  ·
    Share on: mastodon facebook linkedin bluesky copy

    This code is part of a bigger project I'm working on. It checks the disk space for each logical drive and, if the space is below one gigabyte, reports it to Event Viewer at a max of once per day.

    '**************************************************************************** ' This script created by Chrissy LeMaire ( …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • »
    • »»

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