@echo off REM Batch file to run remote asset collection REM Requires administrator privileges echo === Remote Asset Collection === echo. REM Check for admin privileges net session >nul 2>&1 if %errorLevel% neq 0 ( echo This script requires administrator privileges. echo Please run as administrator. pause exit /b 1 ) echo Starting PowerShell script... echo. REM Run the PowerShell script with execution policy bypass powershell.exe -ExecutionPolicy Bypass -File "%~dp0Invoke-RemoteAssetCollection.ps1" -ComputerListFile "%~dp0shopfloor-pcs.txt" echo. echo Collection completed. Check logs folder for details. pause