Files
Windows-Admin-Scripts/RemoveHKeyPrinters.cmd
2026-01-14 10:40:13 -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%