#
References
Microsoft Documentation Links relevant to these scripts Detection Script documentation Remediation Script documentation General References
#
Microsoft Documentation Links relevant to these scripts
#
Detection Script documentation
- Event Logs: Used for evaluating storage space.
- Get-ChildItem: Retrieves file system objects.
#
Remediation Script documentation
CleanMgr Cleanup:
- CleanMgr: Command-line options for disk cleanup.
Storage Sense Cleanup:
- Storage Sense: Configures and triggers cleanup of temporary files and OneDrive content.
DISM Component Store Cleanup:
- DISM Cleanup: Cleans up the WinSxS component store.
User-Specific Temporary File Cleanup:
- Remove-Item: Deletes temporary files.
Event Log Cleanup:
- wevtutil: Exports and clears event logs.
- Application and Service Logs: Details about application and service logs.
- PowerShell Event Logging: Logs PowerShell events.
Old User Profile Cleanup:
- Remove User Profiles: Deletes old user profiles.
Logging:
- PowerShell Logging: Captures logs using
Start-Transcript.
- PowerShell Logging: Captures logs using
#
General References
- Task Scheduler Logs: Logs related to scheduled tasks.
- Windows Update Logs: Logs related to Windows updates.
- Windows Defender Logs: Logs related to Windows Defender.
- Group Policy Logs: Logs related to Group Policy.