Files
powershell-scripts/setup-utilities/Install-Schedule.bat
cproudlock 62c0c7bb06 Initial commit: Organized PowerShell scripts for ShopDB asset collection
Structure:
- asset-collection/: Local PC data collection scripts
- remote-execution/: WinRM remote execution scripts
- setup-utilities/: Configuration and testing utilities
- registry-backup/: GE registry backup scripts
- winrm-https/: WinRM HTTPS certificate setup
- docs/: Complete documentation

Each folder includes a README with detailed documentation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 10:57:54 -05:00

36 lines
946 B
Batchfile

@echo off
REM Install-Schedule.bat
REM Simple batch file to install the asset collection scheduled task
REM Runs PowerShell with bypass policy to avoid execution restrictions
echo =====================================
echo Installing Asset Collection Schedule
echo =====================================
echo.
REM Check if running as administrator
net session >nul 2>&1
if %errorLevel% neq 0 (
echo [ERROR] Must run as Administrator
echo Right-click this file and select "Run as administrator"
pause
exit /b 1
)
echo Running PowerShell installer...
echo.
REM Run PowerShell with bypass policy
powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File "%~dp0Install-AssetCollectionSchedule.ps1"
if %errorLevel% equ 0 (
echo.
echo [SUCCESS] Asset collection schedule installed!
echo Your machine will now collect asset data 4 times daily.
) else (
echo.
echo [ERROR] Installation failed
)
echo.
pause