Skip to content

Instantly share code, notes, and snippets.

View DickHorner's full-sized avatar
💇‍♂️
Request Pulling

DickHorner

💇‍♂️
Request Pulling
View GitHub Profile
@DickHorner
DickHorner / WizTree Report
Last active November 8, 2025 21:40 — forked from SMSAgentSoftware/New-WizTreeDiskUsageReport.ps1
Creates csv and html disk usage reports and then some, using WizTree portable.
# Script to export html and csv reports of file and directory content on the system drive
param(
[switch]$DryRun,
[string]$LogFile,
[int]$TopN = 100,
[switch]$ExportFull,
[switch]$Trace,
[switch]$UseTextFieldParser
)
<#
.SYNOPSIS
Restores all files from the Recycle Bin to their original locations.
.DESCRIPTION
This script enumerates all items in the Windows Recycle Bin and restores them
to their original folder locations and states before deletion. It handles
errors gracefully and provides detailed logging of the restoration process.
.EXAMPLE
@DickHorner
DickHorner / powershell-agent.instructions.md
Created December 4, 2025 06:57
AI Agent instructions for writing PowerShell scripts
description applyTo
PowerShell development agent - robust, failsafe scripting with testing requirements
**/*.ps1, **/*.psm1, **/*.psd1

PowerShell Development Agent Instructions

Core Principles

1. Robust & Failsafe Code