moving shit around

This commit is contained in:
2025-10-03 21:48:06 -05:00
parent d7ef359b82
commit 4af8ff2fa2
16 changed files with 1 additions and 4 deletions

39
old/domlogon.bat Normal file
View File

@@ -0,0 +1,39 @@
@echo off
setlocal
title iR/TNG/NH Logon Script
set logonlog="\\technologsvr\batchlogs$\domlogonlog"
set statlog="\\technologsvr\batchlogs$\domstatlog"
rem initial check, if error abort everything
echo Checking if you're on the Technolog internal LAN
ping 10.0.1.2 >nul
ping technologsvr.technolog.net >nul
if %errorlevel% neq 0 goto fuck
rem elevation?
net config server
if %errorlevel% neq 0 echo No elevation found, skipping
rem log to svr
echo $$ System Logon: %username% on %computername% @ %time% %date% >> "\\technologsvr\batchlogs$\domlogonlog"
echo System logon audited
echo Polling stats...
net config workstation >> "\\technologsvr\batchlogs$\domstatlog"
ipconfig >> "\\technologsvr\batchlogs$\domstatlog"
REM net statistics workstation >> "\\technologsvr\batchlogs$\domstatlog"
REM net statistics server >> "\\technologsvr\batchlogs$\domstatlog"
gpresult /r >> "\\technologsvr\batchlogs$\domstatlog"
gpresult >> "\\technologsvr\batchlogs$\domstatlog"
echo stats polled
echo bye
endlocal
exit
:fuck
echo You're not connected to the internal network- aborting
endlocal
exit