paulwetter / DocumentConfigMgrCB

This script attempts to document your entire Configuration Manager (MEMCM/SCCM) environment
https://wetterssource.com/documentconfigmgrcb
174 stars 45 forks source link

minor code glitches #69

Closed ChristelVDH closed 3 years ago

ChristelVDH commented 3 years ago

line 5898 adds the wrong values to $listarray--> $filesarray instead of $processarray lines 4096 and 4075 return an error when schedule object is empty --> propose check on ($null -eq $AgentConfig.Schedule) and ($null -eq $AgentConfig.EvaluationSchedule) to prevent $null validation error from the Convert-CMSchedule cmdlet

ChadSimmons commented 3 years ago
ChristelVDH commented 3 years ago

I have ran the script again in debug mode in VSCode and then I did not get the $null error on these lines and neither were the schedules empty or null. I'll keep an eye out next time I run it in production again.

ChadSimmons commented 3 years ago

@chriskenis are you planning to submit a pull request for the issue on line 5898? I thought you might want "credit" for squashing that bug.