Collect SCCM client log - For troubleshooting
On a client machine to troubleshoot issues related software/patch deployment (via SCCM), a set of information would be required from the respective machine.
I have developed a powershell script LogCollection v1.0 to collect such required information from the reported machine. This might be useful for the needy.
This script will perform following actions in the client on which it is being executed:
- Check the status of below services:
- SMS Agent Host [If stopped then it will start]
- Windows Management Instrumentation [If stopped then it will stop with a message]
- CNG Key Isolation [If stopped then it will start]
- Trigger the below SCCM policies
- Machine Policy Retrieval & Evaluation Cycle
- Application Deployment Evaluation Cycle
- Software Update Scan Cycle
- Software Update Deployment Evaluation Cycle
- Gather below data:
- CCMCache folder info
- List of application installed
- List of MS KBs installed
- Collect SCCM logs
NOTE: LogCollections.log will log the status of the above actions.