moving shit around
This commit is contained in:
39
old/domlogon.bat
Normal file
39
old/domlogon.bat
Normal 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
|
Reference in New Issue
Block a user