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
| # PrintQueue-Cleanup.ps1 | |
| # Scheduled task to run at ~midnight for stuck/errored print jobs | |
| # Requires admin rights to run due to service operations | |
| # Check for admin privileges | |
| if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
| Write-Error "This script requires Administrator privileges. Please restart as Administrator." | |
| exit 1 | |
| } |
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
| #Requires -RunAsAdministrator | |
| <# | |
| .SYNOPSIS | |
| Silently installs Veeam Backup & Replication Community Edition (free). | |
| .DESCRIPTION | |
| Resolves the latest VBR ISO URL by: | |
| 1. Scraping the Veeam R&D forum sticky (static HTML, no JS, Veeam-maintained): | |
| https://forums.veeam.com/veeam-backup-replication-f2/current-version-t9456.html | |
| This gives us the current version string e.g. "13.0.1.2067" |
OlderNewer