diff --git a/Login/System_Tasks/add_local_admins.bat b/Login/System_Tasks/add_local_admins.bat new file mode 100644 index 0000000..e924c02 --- /dev/null +++ b/Login/System_Tasks/add_local_admins.bat @@ -0,0 +1,11 @@ +@echo off +for /f "tokens=*" %%a in ('type "C:\Scripts\Login\System_Tasks\local_admins.txt"') do ( + for %%b in (%%a) do ( + net localgroup Administrators "%%b" /add + if errorlevel 1 ( + echo Failed to add %%b to Administrators group. + ) else ( + echo User %%b added to Administrators group successfully. + ) + ) +) diff --git a/Login/System_Tasks/local_admins.txt b/Login/System_Tasks/local_admins.txt new file mode 100644 index 0000000..e8e689b --- /dev/null +++ b/Login/System_Tasks/local_admins.txt @@ -0,0 +1,25 @@ +bschaper_tcse, +scarrington_tcse, +abrock_tcse, +aremsey_tcse, +adaneshdoost_tcse, +amaxey_tcse, +bhicks_tcse, +cbumann_tcse, +cpayne_tcse, +djones_tcse, +ehenriksen_tcse, +jcochran_tcse, +kfanning_tcse, +lharris_tcse, +lgross_tcse, +mjudge_tcse, +mlingle_tcse, +mreel_tcse, +rcuden_tcse, +revans_tcse, +slyles_tcse, +shood_tcse, +spresswood_tcse, +sbookstaver_tcse, +tbaileysmith_tcse \ No newline at end of file diff --git a/Login/System_Tasks/test.ps1 b/Login/System_Tasks/test.ps1 deleted file mode 100644 index e69de29..0000000