Compare commits

..

69 Commits

Author SHA1 Message Date
d24e537174 . 2025-10-09 10:48:14 +01:00
faa850471d . 2025-10-05 11:34:27 +01:00
a46f7fabfc . 2025-10-05 11:31:10 +01:00
6af3543fab . 2025-10-05 11:23:43 +01:00
e14125cb27 . 2025-10-04 20:03:55 +01:00
8a8e06c486 . 2025-10-04 19:59:37 +01:00
77e98cdd85 . 2025-10-04 19:22:30 +01:00
ce657d803d . 2025-10-04 19:19:49 +01:00
60b345d04a . 2025-10-04 19:16:07 +01:00
20a9ab4c58 . 2025-10-04 19:12:03 +01:00
b9cd7a2d21 . 2025-10-04 02:45:37 +01:00
f9cc203637 . 2025-09-24 11:45:39 +01:00
49fb772475 fix default printer management 2025-09-24 11:43:42 +01:00
aa10e6dd54 . 2025-09-22 19:06:49 +01:00
9091bc2a2e . 2025-09-22 18:45:25 +01:00
0443a95ea3 . 2025-09-05 22:23:44 +01:00
4add2bc8ea . 2025-09-05 22:22:25 +01:00
eaf5cbc520 . 2025-09-02 21:19:29 +01:00
01eb6d47f4 . 2025-09-02 21:09:46 +01:00
3bebcf5f07 . 2025-09-02 20:59:33 +01:00
e0fc96f9c8 . 2025-09-02 20:39:27 +01:00
93c82ea229 . 2025-09-02 20:03:48 +01:00
8c5b4ecc57 . 2025-09-02 20:02:28 +01:00
2b129f85f2 . 2025-08-29 20:32:57 +01:00
b18e49dde5 . 2025-08-29 20:23:17 +01:00
b6773923c6 . 2025-08-29 20:19:38 +01:00
ed46f720fd . 2025-08-29 17:43:20 +01:00
30eeaeceb6 . 2025-08-29 17:25:44 +01:00
707b5b5bb7 . 2025-08-29 17:17:47 +01:00
72b1f25f75 . 2025-08-29 17:10:21 +01:00
114df0fd44 . 2025-08-29 16:53:21 +01:00
e24b1317c7 . 2025-08-29 16:42:11 +01:00
f735b06138 . 2025-08-29 16:12:23 +01:00
58a5293abb . 2025-08-29 16:03:09 +01:00
b5665b499e . 2025-08-29 15:54:37 +01:00
1b70ab280b . 2025-08-22 17:13:53 +01:00
f1a663fc7d . 2025-08-22 17:07:27 +01:00
ac86aca959 . 2025-08-22 17:04:13 +01:00
1a93fccb97 . 2025-08-22 16:53:53 +01:00
08e5510705 . 2025-08-22 15:09:29 +01:00
94e49c6f0a . 2025-08-22 15:06:44 +01:00
36f9487ca0 . 2025-08-22 13:26:46 +01:00
c790d986b1 . 2025-08-22 13:21:40 +01:00
e6a36c0426 . 2025-08-22 12:40:42 +01:00
3de28867b2 . 2025-08-22 12:11:48 +01:00
8202867bed . 2025-08-22 11:51:54 +01:00
10594ea48f . 2025-08-21 20:55:04 +01:00
4a5bcdd8cf . 2025-08-21 20:53:17 +01:00
6356998d51 . 2025-08-21 20:47:08 +01:00
63981c003b . 2025-08-21 20:40:13 +01:00
837d0723a6 . 2025-08-21 20:37:19 +01:00
2228eab70a . 2025-08-21 20:34:19 +01:00
5f86ebea6e . 2025-08-21 18:44:56 +01:00
ad783364d7 . 2025-08-21 18:24:39 +01:00
cac350524d . 2025-08-21 18:13:24 +01:00
8f7b55b414 . 2025-08-21 16:54:25 +01:00
dbbb891a7b . 2025-08-21 16:30:29 +01:00
b0d317ba52 update batch files 2025-08-11 12:51:29 +01:00
36d276efea . 2025-07-09 21:33:59 +01:00
406443727d . 2025-04-25 13:24:41 +01:00
1d43e91fc2 . 2024-09-17 21:57:24 +01:00
195e16659f . 2024-09-11 18:17:57 +01:00
68dcf462bb . 2024-09-06 18:41:27 +01:00
499e1d3c2a . 2024-09-06 18:22:56 +01:00
912d56a1e4 . 2024-09-02 21:07:14 +01:00
8f25e27d77 . 2024-09-02 20:48:15 +01:00
c98867f9d1 . 2024-09-02 20:46:29 +01:00
2713536288 . 2024-09-02 20:41:54 +01:00
4eddddadda . 2024-09-02 20:39:42 +01:00
29 changed files with 618 additions and 141 deletions

View File

@ -0,0 +1,4 @@
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"EnableAutoTray"=dword:00000001

View File

@ -0,0 +1,112 @@
@echo off
call C:\Scripts\wBase\baseENV.bat
call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
@REM set powershell variables
set PRINTERPS="%LOCAL%\PS\pAddPrinters.ps1"
set BROTHERPS="%LOCAL%\PS\pAddNetBrother.ps1"
set ZEBRAPS="%LOCAL%\PS\pAddNetZebra.ps1"
set EXE="Powershell.exe"
@REM set variables to ensure they are set
@REM printer 0 - no install
@REM printer 1 - install brother
@REM printer 2 - install zebra
@REM printer 3 - install both
set ZUPER=0
set PRINTER=0
if "%USERNAME%" == "zuper" (
echo "Found user %USERNAME%"
echo "Not setting up printer for %USERNAME%"
set ZUPER=1
)
echo %COMPUTERNAME% | find /I "surgery" >nul
if %errorlevel%==0 (
set PRINTER=3
)
echo %COMPUTERNAME% | find /I "reception" >nul
if %errorlevel%==0 (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION2" (
set PRINTER=2
)
if [%ZUPER%] == [1] (
echo "Not installing printers"
) else (
if [%PRINTER%] == [1] (
echo "Installing Brother"
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception2\brother
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.22\BROTHER"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception2\BROTHER"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception2\BROTHER"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
C:\Scripts\wLocal\SystemChecks\CheckInstallPrinter.bat RECEPTION2 BROTHER
timeout 10
)
if [%PRINTER%] == [2] (
echo "Installing Zebra"
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
CD C:\WINDOWS\SYSTEM
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception1\zebra
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception1\ZEBRA"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
C:\Scripts\wLocal\SystemChecks\CheckInstallPrinter.bat RECEPTION1 ZEBRA
timeout 10
)
if [%PRINTER%] == [3] (
echo "Installing Brother and Zebra"
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.22\BROTHER"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception2\BROTHER"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception2\BROTHER"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
C:\Scripts\wLocal\SystemChecks\CheckInstallPrinter.bat RECEPTION1 ZEBRA
timeout 10
C:\Scripts\wLocal\SystemChecks\SetDefaultPrinter.bat RECEPTION2 BROTHER
timeout 10
)
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "Fax"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "Microsoft XPS Document Writer"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "OneNote (Desktop)"
)
echo "FINISHED: %~n0"
@REM https://woshub.com/manage-printers-and-drivers-from-the-command-line-in-windows-8/
@REM https://ss64.com/nt/net-use.html
@REM https://www.windowscentral.com/how-properly-remove-printer-windows-10#uninstall_printer_printmanagement
@REM Printer name \\reception1\ZDesigner GK420d
@REM Share name ZEBRA
@REM Driver name ZDesigner GK420d
@REM C:\Windows\System>cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
@REM Printer name \\reception2\BROTHER
@REM Share name BROTHER
@REM Driver name Brother DCP-L2510D series

View File

@ -0,0 +1,24 @@
@ECHO OFF
set path=%PATH%
set myPrintServer=%1
set myPrinter=%2
REM Check if myPrintServer is reachable
ping -n 1 %myPrintServer% >nul 2>&1
if errorlevel 1 (
echo "%myPrintServer% is not reachable"
exit /b
)
REM Check if myPrinter is available
rundll32 printui.dll,PrintUIEntry /q /t1 /n "\\%myPrintServer%\%myPrinter%" >nul 2>&1
if errorlevel 1 (
echo Printer %myPrinter% is not available.
) else (
echo Printer %myPrinter% is available.
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\%myPrintServer%\%myPrinter%"
)
exit /b

View File

@ -0,0 +1,23 @@
@ECHO OFF
set path=%PATH%
set myPrintServer=RECEPTION2
set myPrinter=BROTHER
REM Check if myPrintServer is reachable
ping -n 1 %myPrintServer% >nul 2>&1
if errorlevel 1 (
echo "%myPrintServer% is not reachable"
exit /b
)
REM Check if myPrinter is available
rundll32 printui.dll,PrintUIEntry /q /t1 /n "\\%myPrintServer%\%myPrinter%" >nul 2>&1
if errorlevel 1 (
echo Printer %myPrinter% is not available.
) else (
echo Printer %myPrinter% is available.
)
exit /b

View File

@ -0,0 +1,23 @@
@ECHO OFF
set path=%PATH%
set myPrintServer=RECEPTION1
set myPrinter=ZEBRA
REM Check if myPrintServer is reachable
ping -n 1 %myPrintServer% >nul 2>&1
if errorlevel 1 (
echo "%myPrintServer% is not reachable"
exit /b
)
REM Check if myPrinter is available
rundll32 printui.dll,PrintUIEntry /q /t1 /n "\\%myPrintServer%\%myPrinter%" >nul 2>&1
if errorlevel 1 (
echo Printer %myPrinter% is not available.
) else (
echo Printer %myPrinter% is available.
)
exit /b

View File

@ -0,0 +1,23 @@
@echo off
call C:\Scripts\wBase\baseENV.bat
call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
set path=%PATH%
set Software="LibreOffice"
set SoftwarePath="C:\Program Files\LibreOffice\program\soffice.exe"
echo "Checking for %1 at %2"
REM Check if LibreOffice is installed
if exist %2 (
echo "%1 is installed"
) else (
echo "%1 is not installed"
call %TMESSAGE% '"%1 missing on %check_computername%"'
)
exit /b

View File

@ -0,0 +1,22 @@
@echo off
call C:\Scripts\wBase\baseENV.bat
call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
@REM set powershell variables
set SHOWSECONDS="%BASE%\PS\pShowSeconds.ps1"
set SHOWAPPICONS="%BASE%\PS\pShowAppIcons.ps1"
set DISABLEPRINTERMAN="%BASE%\PS\pDisablePrinterMan.ps1"
echo "Installing AppIconsUpdate"
%POWERSHELL% -ExecutionPolicy Bypass -File %SHOWAPPICONS%
echo "Installing SecondsUpdate"
%POWERSHELL% -ExecutionPolicy Bypass -File %SHOWSECONDS%
echo "Disable Windows Deafult Printer Management"
%POWERSHELL% -ExecutionPolicy Bypass -File %DISABLEPRINTERMAN%
echo "FINISHED: %~n0"

View File

@ -0,0 +1,22 @@
@echo off
setlocal
@REM Get the Windows version
for /f "tokens=4-5 delims= " %%a in ('ver') do (
set version=%%a.%%b
)
@REM Check if the version is Windows 11
if "%version%" geq "10.0.22000" (
echo "This script is running on Windows 11."
C:\Scripts\wLocal\SystemChecks\Win11Checks.bat
)
@REM Check if the version is Windows 10
if "%version%" geq "10.0.19045" (
echo "This script is running on Windows 10."
C:\Scripts\wLocal\SystemChecks\Win10Checks.bat
)
endlocal

View File

@ -0,0 +1,26 @@
@ECHO OFF
set path=%PATH%
set myPrintServer=%1
set myPrinter=%2
REM Check if myPrintServer is reachable
ping -n 1 %myPrintServer% >nul 2>&1
if errorlevel 1 (
echo "%myPrintServer% is not reachable"
exit /b
)
REM Check if myPrinter is available
rundll32 printui.dll,PrintUIEntry /q /t1 /n "\\%myPrintServer%\%myPrinter%" >nul 2>&1
if errorlevel 1 (
echo Printer %myPrinter% is not available.
) else (
echo Printer %myPrinter% is available.
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\%myPrintServer%\%myPrinter%"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\%myPrintServer%\%myPrinter%"
RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "\\%myPrintServer%\%myPrinter%"
)
exit /b

View File

@ -0,0 +1,21 @@
@Echo off
echo %COMPUTERNAME% | find /I "reception" >nul
if %errorlevel%==0 (
%SECRETS%\l_Shares.bat
C:\Scripts\wLocal\SystemChecks\AddPrinters.bat
)
echo %COMPUTERNAME% | find /I "surgery" >nul
if %errorlevel%==0 (
C:\Scripts\wLocal\SystemChecks\AddPrinters.bat
)
echo %COMPUTERNAME% | find /I "server2" >nul
if %errorlevel%==0 (
echo " "
)

View File

@ -0,0 +1,53 @@
@echo off
call C:\Scripts\wBase\baseENV.bat
call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
echo %COMPUTERNAME% | find /I "reception" >nul
if %errorlevel%==0 (
%LOCAL%\SystemChecks\CheckSoftware.bat LibreOffice "C:\Program Files\LibreOffice\program\soffice.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat Securilog "C:\Isopharm\Securilog\Securilog.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat Daryou "C:\Windows\twain_32\DY50TWAIN\transfer.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat Exact "C:\Program Files (x86)\Software of Excellence\EXACT\Launch\SoeiDental.ExactLauncher.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat ExaminePro "C:\Program Files (x86)\SOE\ExPro\ExPro.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat Kavo "C:\Program Files (x86)\PaloDEx Group\IAM\KaVoDriverDashboard.exe"
%LOCAL%\SystemChecks\RegistryUpdates.bat
%SECRETS%\l_Shares.bat
%LOCAL%\SystemChecks\AddPrinters.bat
)
echo %COMPUTERNAME% | find /I "surgery" >nul
if %errorlevel%==0 (
%LOCAL%\SystemChecks\CheckSoftware.bat Daryou "C:\Windows\twain_32\DY50TWAIN\transfer.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat Exact "C:\Program Files (x86)\Software of Excellence\EXACT\Launch\SoeiDental.ExactLauncher.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat ExaminePro "C:\Program Files (x86)\SOE\ExPro\ExPro.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat Kavo "C:\Program Files (x86)\PaloDEx Group\IAM\KaVoDriverDashboard.exe"
%LOCAL%\SystemChecks\RegistryUpdates.bat
%SECRETS%\l_Shares.bat
%LOCAL%\SystemChecks\l_FixWordPad.bat
%LOCAL%\SystemChecks\AddPrinters.bat
)
echo %COMPUTERNAME% | find /I "server" >nul
if %errorlevel%==0 (
%LOCAL%\SystemChecks\CheckSoftware.bat BackupAssist "C:\Program Files (x86)\BackupAssist v14\BackupAssist.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat Exact "C:\Program Files (x86)\Software of Excellence\EXACT Server\dental.exe"
%LOCAL%\SystemChecks\CheckSoftware.bat SafeNet "C:\Program Files (x86)\SafeNet Sentinel\Sentinel Protection Installer\7.7.0\English\ReadMe.pdf"
%LOCAL%\SystemChecks\RegistryUpdates.bat
%SECRETS%\l_Shares.bat
%LOCAL%\SystemChecks\l_FixWordPad.bat
)

View File

@ -0,0 +1,36 @@
@echo off
call C:\Scripts\wBase\baseENV.bat
call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
set path=%PATH%
set Software="Wordpad"
set SoftwarePath="W:\Windows NT"
REM Check if Wordpad is available
if exist %SoftwarePath% (
echo "%Software% is available"
mkdir "C:\Scripts\Wordpad"
xcopy "W:\*" "C:\Scripts\Wordpad\" /h /e /y
) else (
if exist "D:\my\myHomes\DocumentsHighfieldApps\Wordpad" (
echo "%Software% is available on Server"
mkdir "C:\Scripts\Wordpad"
xcopy "D:\my\myHomes\DocumentsHighfieldApps\Wordpad\*" "C:\Scripts\Wordpad\" /h /e /y
) else (
echo "%Software% is not installed"
call %TMESSAGE% '"%Software% missing on %check_computername%"'
)
)
mklink C:\Users\%USERNAME%\Desktop\Wordpad "C:\Scripts\Wordpad\wordpad.exe"
exit /b

53
SystemChecks/test.bat Normal file
View File

@ -0,0 +1,53 @@
ECHO OFF
set path=%PATH%;c:\daryoubutton;C:\Windows\twain_32\DY50TWAIN
@echo off
set directoryPath=C:\path\to\your\directory
REM Check if the directory exists
if exist "%directoryPath%" (
echo Directory %directoryPath% exists.
) else (
echo Directory %directoryPath% does not exist.
)
exit /b
@echo off
setlocal
REM Define the path to the LibreOffice installation
set libreOfficePath="C:\Program Files\LibreOffice\program\soffice.exe"
REM Check if the computer name contains "reception"
echo %COMPUTERNAME% | find /I "reception" >nul
if errorlevel 1 (
echo This script must be run on a machine with "reception" in its name.
exit /b
)
REM Check if LibreOffice is installed
if exist %libreOfficePath% (
echo LibreOffice is installed.
) else (
echo LibreOffice is not installed.
)
endlocal
exit /b
check exact
check examinepro
check daryou
check kavo
check libreoffice

View File

@ -39,6 +39,22 @@ if "%check_computername%" EQU "SURGERY4" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY5" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY6" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY7" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY8" (
set PRINTER=3
)
if "%check_computername%" EQU "RECEPTION1" (
set PRINTER=1
)
@ -55,22 +71,56 @@ if "%check_computername%" EQU "RECEPTION4" (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION5" (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION6" (
set PRINTER=1
)
if [%ZUPER%] == [1] (
echo "Not installing printers"
) else (
if [%PRINTER%] == [1] (
echo "Installing Brother"
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception2\brother
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.22\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception2\BROTHER"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
)
if [%PRINTER%] == [2] (
echo "Installing Zebra"
%EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
CD C:\WINDOWS\SYSTEM
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception1\zebra
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception1\ZEBRA"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
)
if [%PRINTER%] == [3] (
echo "Installing Brother and Zebra"
%EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
%EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.22\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
)
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "Fax"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "Microsoft XPS Document Writer"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "OneNote (Desktop)"
)
echo "FINISHED: %~n0"
@ -78,3 +128,17 @@ echo "FINISHED: %~n0"
@REM https://woshub.com/manage-printers-and-drivers-from-the-command-line-in-windows-8/
@REM https://ss64.com/nt/net-use.html
@REM https://www.windowscentral.com/how-properly-remove-printer-windows-10#uninstall_printer_printmanagement
@REM Printer name \\reception1\ZDesigner GK420d
@REM Share name ZEBRA
@REM Driver name ZDesigner GK420d
@REM C:\Windows\System>cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
@REM Printer name \\reception2\BROTHER
@REM Share name BROTHER
@REM Driver name Brother DCP-L2510D series

View File

@ -39,6 +39,22 @@ if "%check_computername%" EQU "SURGERY4" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY5" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY6" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY7" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY8" (
set PRINTER=3
)
if "%check_computername%" EQU "RECEPTION1" (
set PRINTER=1
)
@ -55,6 +71,14 @@ if "%check_computername%" EQU "RECEPTION4" (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION5" (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION6" (
set PRINTER=1
)
@REM if [%ZUPER%] == [1] (
@REM echo "Not installing printers"
@REM ) else (

View File

@ -39,6 +39,22 @@ if "%check_computername%" EQU "SURGERY4" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY5" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY6" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY7" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY8" (
set PRINTER=3
)
if "%check_computername%" EQU "RECEPTION1" (
set PRINTER=1
)
@ -55,6 +71,14 @@ if "%check_computername%" EQU "RECEPTION4" (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION5" (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION6" (
set PRINTER=1
)
if [%ZUPER%] == [1] (
echo "Not installing printers"
) else (
@ -75,6 +99,7 @@ if [%ZUPER%] == [1] (
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception1\zebra
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
shutdown /r /t 1
@ -88,6 +113,7 @@ if [%ZUPER%] == [1] (
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
shutdown /r /t 1
)

View File

@ -79,6 +79,7 @@ if [%ZUPER%] == [1] (
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception1\zebra
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
shutdown /r /t 1
@ -92,6 +93,7 @@ if [%ZUPER%] == [1] (
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
shutdown /r /t 1
)

View File

@ -86,6 +86,7 @@ if [%ZUPER%] == [1] (
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception1\zebra
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
shutdown /r /t 1
@ -99,6 +100,7 @@ if [%ZUPER%] == [1] (
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner ZD220-203dpi ZPL"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
shutdown /r /t 1
)

View File

@ -3,17 +3,13 @@ call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
set BINARY=%homedrive%%homepath%\syncthing\syncthing
set MASTER_LIST=C:\Scripts\Secrets\master.list
set SHARE_LIST=C:\Scripts\Secrets\share.list
set TEMP_LIST=%homedrive%%homepath%\temp.list
set LOGNAME=%USERNAME%
set MYHOST=%COMPUTERNAME%
%BINARY% --device-id > %TEMP_LIST%
set /p MYID= < %TEMP_LIST%
echo "myID is %MYID%"
mkdir C:\Users\%USERNAME%\.ssh
ssh-keygen -o -a 100 -t ed25519 -f C:\Users\%USERNAME%\.ssh\giteadeploy -N "" -C giteadeploy@%MYHOST%
copy C:\Users\%USERNAME%\.ssh\giteadeploy.pub C:\Users\%USERNAME%\.ssh\_1gtdeploy%MYHOST%.pub

View File

@ -5,8 +5,8 @@ echo "START: %~n0"
set BINARY=%homedrive%%homepath%\syncthing\syncthing
set MASTER_LIST=C:\Scripts\Secrets\master.list
set SHARE_LIST=C:\Scripts\Secrets\share.list
set MASTER_LIST=C:\Scripts\wUserp\newmasters.list
set SHARE_LIST=C:\Scripts\wUserp\newshare.list
set TEMP_LIST=%homedrive%%homepath%\temp.list
set LOGNAME=%USERNAME%
set MYHOST=%COMPUTERNAME%
@ -19,14 +19,14 @@ echo "myID is %MYID%"
%BINARY% cli config devices %MYID% name set p%MYHOST%.%LOGNAME%
%BINARY% cli config defaults folder fswatcher-enabled set true
%BINARY% cli config defaults folder rescan-intervals set 19997
%BINARY% cli config defaults folder rescan-intervals set 9997
%BINARY% cli config options min-home-disk-free unit set GB
%BINARY% cli config folders list > %TEMP_LIST%
for /f %%y in (%TEMP_LIST%) do (
echo %%y
%BINARY% cli config folders %%y rescan-intervals set 19997
%BINARY% cli config folders %%y rescan-intervals set 9997
%BINARY% cli config folders %%y fswatcher-enabled set true
%BINARY% cli config folders %%y min-disk-free unit set GB
)

View File

@ -1,118 +0,0 @@
@echo off
call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
set PRINTERPS="%LOCAL%\PS\pAddPrinters.ps1"
set BROTHERPS="%LOCAL%\PS\pAddNetBrother.ps1"
set ZEBRAPS="%LOCAL%\PS\pAddNetZebra.ps1"
set EXE="Powershell.exe"
@REM set variables to ensure they are set,
@REM printer 0 - no install
@REM printer 1 - install brother
@REM printer 2 - install zebra
@REM printer 3 - install both
set ZUPER=0
set PRINTER=0
if "%USERNAME%" == "zuper" (
echo "Found user %USERNAME%"
echo "Not setting up printer for %USERNAME%"
set ZUPER=1
)
if "%check_computername%" EQU "SURGERY1" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY2" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY3" (
set PRINTER=3
)
if "%check_computername%" EQU "SURGERY4" (
set PRINTER=3
)
if "%check_computername%" EQU "RECEPTION1" (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION2" (
set PRINTER=2
)
if "%check_computername%" EQU "RECEPTION3" (
set PRINTER=1
)
if "%check_computername%" EQU "RECEPTION4" (
set PRINTER=1
)
if [%ZUPER%] == [1] (
echo "Not installing printers"
) else (
if [%PRINTER%] == [1] (
echo "Installing Brother"
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception2\brother
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.22\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception2\BROTHER"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
)
if [%PRINTER%] == [2] (
echo "Installing Zebra"
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
CD C:\WINDOWS\SYSTEM
@REM rundll32 printui.dll,PrintUIEntry /in /n \\reception1\zebra
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
@REM cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception1\ZEBRA"
@REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name
)
if [%PRINTER%] == [3] (
echo "Installing Brother and Zebra"
@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS%
@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS%
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.22\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -t -p "\\reception2\BROTHER"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\192.168.1.21\ZEBRA"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\reception1\ZEBRA"
)
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "Fax"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "Microsoft XPS Document Writer"
cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "OneNote (Desktop)"
)
echo "FINISHED: %~n0"
@REM https://woshub.com/manage-printers-and-drivers-from-the-command-line-in-windows-8/
@REM https://ss64.com/nt/net-use.html
@REM https://www.windowscentral.com/how-properly-remove-printer-windows-10#uninstall_printer_printmanagement
@REM Printer name \\reception1\ZDesigner GK420d
@REM Share name ZEBRA
@REM Driver name ZDesigner GK420d
@REM C:\Windows\System>cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "\\reception1\ZDesigner GK420d"
@REM Printer name \\reception2\BROTHER
@REM Share name BROTHER
@REM Driver name Brother DCP-L2510D series

22
l_RunChecks.bat Normal file
View File

@ -0,0 +1,22 @@
@echo off
setlocal
@REM Get the Windows version
for /f "tokens=4-5 delims= " %%a in ('ver') do (
set version=%%a.%%b
)
@REM Check if the version is Windows 11
if "%version%" geq "10.0.22000" (
echo "This script is running on Windows 11."
C:\Scripts\wLocal\SystemChecks\Win11Checks.bat
)
@REM Check if the version is Windows 10
if "%version%" geq "10.0.19045" (
echo "This script is running on Windows 10."
C:\Scripts\wLocal\SystemChecks\Win10Checks.bat
)
endlocal

View File

@ -3,10 +3,15 @@ set check_computername=%COMPUTERNAME%
echo "Found computer %check_computername%"
set PACKAGES=C:\Packages
set WPUBLIC=C:\wPublic
set BASE=C:\Scripts\wBase
set LOCAL=C:\Scripts\wLocal
set SECRETS=C:\Scripts\Secrets
set PUBLIC=C:\Scripts\Public
set WPUBLIC=C:\wPublic
set TMESSAGE=%BASE%\Msg\tmessage.bat
set TMESSAGEH=%BASE%\Msg\tmessageH.bat
set POWERSHELL=%SYSTEMROOT%\system32\WindowsPowerShell\v1.0\powershell.exe

View File

@ -3,6 +3,12 @@ call C:\Scripts\wLocal\localENV.bat
@REM xxxxxxx
echo "START: %~n0"
call C:\scripts\wpublic\bin\pull.bat
@REM delete no longer needed files
del c:\pull.bat
del c:\scripts\wlocal\l_RunRegEditUpdates.bat
del c:\scripts\wlocal\l_AddPrinters.bat
FOR %%x IN (%LOCAL%\l_*.bat) DO (
echo "%%x"
call "%%x"
@ -13,4 +19,6 @@ FOR %%x IN (C:\Scripts\Secrets\l_*.bat) DO (
call "%%x"
)
echo "FINISHED: %~n0"

View File

@ -6,7 +6,6 @@ echo "%~n0: Start"
ping -n 7 -i 7 192.8.1.1
call %TMESSAGE% '"STARTED local %check_computername% "'
if "%check_computername%" EQU "SERVER" (
ping -n 7 -i 7 192.8.1.1
call %TMESSAGEH% '" %check_computername% has STARTED "'

View File

@ -4,9 +4,9 @@ call C:\Scripts\wLocal\localENV.bat
echo "%~n0: Start"
if exist Q:\HourlyLiveBackup2\ (
if exist C:\Hourly-Internal-NAS\ (
echo "Backup disk found"
"C:\Program Files (x86)\BackupAssist v12\BackupAssistManualLauncher.exe" 2 -u -d
"C:\Program Files (x86)\BackupAssist v14\BackupAssistManualLauncher.exe" 2 -u -d
) else (
echo "Backup disk NOT found"
call %TMESSAGE% '"LOCAL hourly backup disk missing on %check_computername%"'

View File

@ -4,9 +4,9 @@ call C:\Scripts\wLocal\localENV.bat
echo "%~n0: Start"
if exist Q:\HourlyLiveBackup2\ (
if exist F:\Hourly-USB-LOCAL\ (
echo "Backup disk found"
"C:\Program Files (x86)\BackupAssist v12\BackupAssistManualLauncher.exe" 15 -u -d
"C:\Program Files (x86)\BackupAssist v14\BackupAssistManualLauncher.exe" 15 -u -d
) else (
echo "Backup disk NOT found"
call %TMESSAGE% '"LOCAL hourly backup disk missing on %check_computername%"'

5
tester.bat Normal file
View File

@ -0,0 +1,5 @@
call C:\Scripts\wBase\baseENV.bat
call C:\Scripts\wLocal\localENV.bat
echo %DONKEY%
echo %BASE%