Skatterbrainz / CMHealthCheck

ConfigMgr Health Check Reporting PowerShell functions
MIT License
32 stars 11 forks source link

Issue when Running Script #67

Open Robinson89120 opened 5 months ago

Robinson89120 commented 5 months ago

Describe the bug

Unable to generate the XML files when running get-cmhealthcheck Data collection process completed. Total Runtime: 00:00:03 (hh:mm:ss) Unable to copy contents of Log file - Refer to Attached PNG AFxQbxuXTf

To Reproduce Steps to reproduce the behavior:

  1. Launch powershell
  2. Import-Module CMHealthChek
  3. Get-CMHealthCheck -OutputFolder "C:\Reports" -Overwrite
  4. See error

Site Info (please complete the following information):

Skatterbrainz commented 5 months ago

The error message appears to indicate a SQL connection failure. Make sure you run the script from a user session that has required permissions into the SQL instance and database. Double check the instance and database names also.