This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 + ' ===') |