Commit Graph
7 Commits
Author SHA1 Message Date
Kevin Simmons 1819ac1974 Fix CIM filter string parsing error
- Extract maxAge string to variable to avoid nested quote issues
- Simplify filter string construction for CIM queries
2026-10-04 15:27:20 -05:00
Kevin Simmons 78957bf722 Fix remote remediation to use proper system paths
- Clear-TempFiles: Uses CIM to get system root and enumerate files by date
- Clear-WerDumps: Uses CIM to get system root and program data paths
- Reset-NetworkStack: Uses CIM to get system root for ipconfig/netsh
- Clear-WindowsUpdateFiles: Uses CIM to get system root for update paths
- Clear-BrowserCaches: Uses CIM to get system root for user profile paths
- All remote operations now use proper system paths from remote machine
2026-10-04 15:26:20 -05:00
Kevin Simmons 198428cc44 Make temp file age threshold configurable via -TempFileAgeDays parameter
- Default: 3 days (can be overridden via parameter)
- Parameter passed to Clear-TempFiles function
- Updated menu to show configured threshold
2026-10-04 15:20:47 -05:00
Kevin Simmons d3612914e7 Add pending reboot handling, Windows Update cleanup, disk space reporting, and browser cache cleanup
- Get-DiskSpaceInfo: Returns disk space info for before/after comparison
- Clear-WindowsUpdateFiles: Removes SoftwareDistribution, WinSxS backup files
- Clear-BrowserCaches: Clears Chrome, Firefox, Edge caches for all users
- Disk cleanup now reports space freed per drive
- Updated menu with option 9 for browser cache cleanup
- Full remediation now includes all new cleanup functions
2026-10-04 15:19:31 -05:00
Kevin Simmons 731227dabe Add Invoke-CleanMgrCleanup function
- Runs cleanmgr with all 20 standard cleanup items enabled
- Uses StateFlags0001 registry values for persistent configuration
- Supports both local and remote CIM sessions
- Updated menu to include option 8 for Disk Cleanup
2026-10-04 15:13:15 -05:00
Kevin Simmons 990b147c47 Update Clear-TempFiles and Clear-RecycleBinFiles functions
- Temp files: Only delete items older than 3 days (safer)
- Recycle bin: Purge all user trash cans via BitBucket registry keys
- Updated menu text to reflect 3-day age filter
2026-10-04 15:09:41 -05:00
Kevin Simmons d276b8fe95 Add Invoke-PCRemediation script with full help documentation
- Complete comment-based help with 5 examples
- Author: Kevin Simmons
- Fixed spacing issues in parameter assignments
- Improved error handling with -ErrorAction Stop
- Supports local/remote CIM sessions (DCOM and WinRM)
- Interactive menu and silent execution modes
- HTML report generation support
2026-10-04 14:40:36 -05:00