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:
25
remote-execution/Run-RemoteCollection.bat
Normal file
25
remote-execution/Run-RemoteCollection.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user