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>
This commit is contained in:
36
setup-utilities/Install-Schedule.bat
Normal file
36
setup-utilities/Install-Schedule.bat
Normal file
@@ -0,0 +1,36 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user