first commit

This commit is contained in:
USER
2023-01-17 23:15:21 +00:00
commit 773c15c6ce
27 changed files with 1059 additions and 0 deletions

62
l_AddPrinters.bat Normal file
View File

@ -0,0 +1,62 @@
@echo off
call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "%~n0: Start"
set PRINTERPS="%LOCAL%\PS\pAddPrinters.ps1"
set BROTHERPS="%LOCAL%\PS\pAddNetBrother.ps1"
set ZEBRAPS="%LOCAL%\PS\pAddNetZebra.ps1"
set EXE="Powershell.exe"
if "%USERNAME%" == "zuper" (
echo "Not setting up printer for %USERNAME%"
exit
)
if "%check_computername%" EQU "SURGERY1" (
echo "echo "Installing printers""
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
%EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
)
if "%check_computername%" EQU "SURGERY2" (
echo "echo "Installing printers""
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
%EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
)
if "%check_computername%" EQU "SURGERY3" (
echo "echo "Installing printers""
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
%EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
)
if "%check_computername%" EQU "SURGERY4" (
echo "echo "Installing printers""
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
%EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
)
if "%check_computername%" EQU "RECEPTION1" (
echo "echo "Installing printers""
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
)
if "%check_computername%" EQU "RECEPTION2" (
echo "echo "Installing printers""
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
%EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
)
if "%check_computername%" EQU "RECEPTION3" (
echo "echo "Installing printers""
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
)
if "%check_computername%" EQU "RECEPTION4" (
echo "echo "Installing printers""
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
)