Skip to content

Instantly share code, notes, and snippets.

View goldelehr's full-sized avatar

Gernot Oldelehr goldelehr

View GitHub Profile
@goldelehr
goldelehr / buchhaltung-fix-now.ps1
Created April 30, 2026 11:56
Buchhaltung K-drive local fix
# One-shot fix for testvm123: replace the broken scheduled task with the fixed
# version, run it once, report status. Run as the affected user (NOT elevated).
$ErrorActionPreference = 'Continue'
$libraryFolderName = 'Buchhaltung - Documents'
$driveLetter = 'K'
$taskName = 'GW-MapKDrive-Buchhaltung'
$odopenUrl = 'odopen://sync/?siteId=%7B38d86127-a8c0-465e-8465-00a2ab93c5a3%7D&webId=%7Bdee05df4-9624-4902-823c-b61b506ed4b2%7D&listId=%7B6bac5979-c120-4469-947e-8d7c13010f7f%7D&webUrl=https%3A%2F%2Freifen24.sharepoint.com%2Fsites%2FBuchhaltung&webTitle=Buchhaltung&listTitle=Documents'
@goldelehr
goldelehr / buchhaltung-trigger.ps1
Last active April 30, 2026 11:41
Buchhaltung trigger and find
# Trigger-and-find: fires odopen://sync, waits, then searches recursively.
# Output uploaded to paste.rs.
$ErrorActionPreference = 'Continue'
$out = New-Object System.Text.StringBuilder
function Add-Section {
param([string]$Title, $Value)
[void]$out.AppendLine('=== ' + $Title + ' ===')
[void]$out.AppendLine(($Value | Out-String).TrimEnd())
@goldelehr
goldelehr / buchhaltung-diag.ps1
Last active April 30, 2026 11:33
Buchhaltung K-Drive diagnostic
# Buchhaltung K-Drive diagnostic.
# Collects state, uploads result to paste.rs, prints the resulting URL.
# Run as the affected user (NOT elevated).
$ErrorActionPreference = 'Continue'
$out = New-Object System.Text.StringBuilder
function Add-Section {
param([string]$Title, $Value)
[void]$out.AppendLine('=== ' + $Title + ' ===')