@echo off setlocal EnableDelayedExpansion :: Created: 2024-11-21 :: Set up logging set "LOGFILE=%TEMP%\tcse-login-script.log" set "LOGFILE=%LOGFILE: =0%" echo Starting setup script at %DATE% %TIME% > "%LOGFILE%" :: Update Scripts via Git echo Updating Scripts... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Update-Scripts.ps1" :: Remove Leftover Deploy Script echo Removing Deploy... >> "%LOGFILE%" powershell Remove-Item -Path 'C:\Scripts\TCSE-Computer-Deploy.bat' -Force :: Enable Wake on LAN echo Checking Wake on LAN... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Enable-WOL.ps1" :: Set Adobe Acrobat to Default PDF Viewer echo Setting Adobe Acrobat to Default PDF Viewer... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\DefaultApp-Adobe.ps1" :: Set Google Chrome to Default Browser echo Setting Google Chrome to Default Browser... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\DefaultApp-Chrome.ps1" :: Set ImageGlass to Default Photo Viewer echo Setting ImageGlass to Default Photo Viewer... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\DefaultApp-ImageGlass.ps1" :: Run Debloat Script powershell -ExecutionPolicy Bypass -File "C:\Scripts\Software\Win11Debloat\Win11Debloat.ps1" -Silent -RemoveW11Outlook -DisableTelemetry -DisableBing -DisableSuggestions -DisableLockscreenTips -ShowKnownFileExt :: Start Reoccurring Screenshot echo Running Screenshots... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Run-Screen.ps1" :: Disable App Location Request Notification echo Disable App Location Request Notification... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Disable-AppLocationNotify.ps1" :: Disable OneDrive Startup echo Disable OneDrive Startup... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Disable-OneDriveStartup.ps1" :: Disable Edge Startup echo Disable Edge Startup... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Disable-EdgeStartup.ps1" :: Remove Edge Desktop Shortcut echo Remove Edge Desktop Shortcut... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Remove-EdgeShortcut.ps1" :: Launch Google Drive for Desktop echo Launching Google Drive... >> "%LOGFILE%" powershell -ExecutionPolicy Bypass -File "C:\Scripts\Login\Launch-GoogleDrive.ps1" :: Uninstall OneDrive echo Uninstall OneDrive... >> "%LOGFILE%" "C:\Scripts\Login\Uninstall-OneDrive.bat" echo Script completed at %DATE% %TIME% >> "%LOGFILE%" echo Log file created at: %LOGFILE% endlocal