Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# PowerShell Utilities

This repository contains a collection of useful PowerShell scripts for various tasks, ranging from Minecraft world backups to system management utilities.

## Tools

### 1. Better Auto-Save (`Better_Auto-Save_R1.ps1`)

A robust Minecraft world backup and restore tool designed to prevent data loss while minimizing disk usage.

**Features:**
- **Auto-Save:** Automatically creates checkpoints of your Minecraft worlds.
- **Smart Backups:** Supports both **Full** and **Incremental** backups.
- **Consolidation:** Ability to merge incremental checkpoints into a consolidated "Master" backup.
- **Rollback:** Easy-to-use menu to rollback your world to a specific checkpoint or master backup.
- **Performance:** Uses embedded C# for fast file operations and size calculations.
- **Safety:** Detects Minecraft's `level.dat` changes to ensure safe backups.

**Usage:**
Run the script in PowerShell:
```powershell
.\Better_Auto-Save_R1.ps1
```
Follow the interactive menu to select your world, configure settings, or start monitoring.

---

### 2. CertToggle (`CertToggle.ps1`)

A simple utility to quickly add or remove a specific CA Certificate to/from the Windows Trusted Root Certificate Authorities store.

**Features:**
- **Single-File Operation:** Automatically detects a `.cer` or `.crt` file in the script's directory.
- **Toggle Functionality:** Checks if the certificate is installed and offers to Add or Remove it.
- **Safety:** Verifies the certificate thumbprint before performing actions.

**Requirements:**
- **Administrator Privileges:** This script must be run as Administrator to modify the system certificate store.

**Usage:**
1. Place your certificate file (`.cer`, `.crt`, etc.) in the same folder as the script.
2. Run the script as Administrator:
```powershell
.\CertToggle.ps1
```
3. Follow the on-screen menu to install or remove the certificate.

---

### 3. DPTS - Dynamic Per-Application Touchpad Sensitivity (`DPTS.ps1`)

A background utility that automatically adjusts your touchpad sensitivity based on the currently active application.

**Features:**
- **Per-Application Settings:** Configure specific sensitivity levels (0-4) for individual applications.
- **Default Sensitivity:** Set a global default for unconfigured applications.
- **Monitoring Mode:** Runs continuously to detect window changes and apply settings instantly.

**Requirements:**
- **Windows 11 Build 26027 or later** (Required for the `SystemParametersInfo` touchpad constants).

**Usage:**

**Configuration Mode:**
To configure applications and defaults:
```powershell
.\DPTS.ps1 -Settings
```

**Monitoring Mode:**
To start the background monitor:
```powershell
.\DPTS.ps1
```

## License

This project is licensed under the [MIT License](LICENSE).