Overview
Search a specified file for a specified string. This command provides file searching capabilities for analyzing SCCM log files and configuration files on the local system.Syntax
Parameters
The string to search for in the file
The full path to the file (e.g., “C:\Windows\ccmsetup\Logs\ccmsetup.log”)
Examples
Output Format
The command outputs matching lines with context:Common SCCM Log Locations
Client Installation Logs
Client Installation Logs
C:\Windows\ccmsetup\Logs\ccmsetup.log- Client installationC:\Windows\ccmsetup\Logs\ccmsetup-ccmeval.log- Client evaluation
Client Operation Logs
Client Operation Logs
C:\Windows\CCM\Logs\CcmExec.log- Main client executiveC:\Windows\CCM\Logs\PolicyAgent.log- Policy processingC:\Windows\CCM\Logs\LocationServices.log- Site assignment
Application and Deployment Logs
Application and Deployment Logs
C:\Windows\CCM\Logs\AppEnforce.log- Application enforcementC:\Windows\CCM\Logs\AppDiscovery.log- Application discoveryC:\Windows\CCM\Logs\SoftwareCatalogUpdateEndpoint.log- Software catalog
Search Strategies
Error Investigation
Error Investigation
Search for common error indicators:
- “ERROR”, “FAILED”, “Exception”
- Specific error codes or messages
- Component-specific failure patterns
Configuration Discovery
Configuration Discovery
Look for configuration-related strings:
- Server names and IP addresses
- Site codes and management points
- Authentication and certificate information
Timeline Analysis
Timeline Analysis
Search for timestamps and sequence information:
- Installation dates and times
- Policy refresh cycles
- Application deployment events
Use Cases
Troubleshooting
Troubleshooting
Analyze SCCM client logs to identify configuration issues, communication failures, or deployment problems.
Reconnaissance
Reconnaissance
Extract configuration information, server details, and site topology from log files.
Forensic Analysis
Forensic Analysis
Investigate SCCM client activity and identify potential security events or unauthorized access.
Related Commands
local triage- Comprehensive log analysislocal site-info- Get current site configurationlocal query- Query WMI for additional information