Files
Windows-Admin-Scripts/RemoveHKeyPrinters/RemoveHKeyPrinters.cmd
2026-01-14 12:42:42 -06:00

5 lines
221 B
Batchfile

@echo off
REM Ensure PowerShell execution regardless of local policy
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "\\domain_name\SYSVOL\domain_name\scripts\Printers\RemoveHKeyPrinters.ps1"
exit /b %ERRORLEVEL%