Hi,
I've got a few hundred computers to update with Update-management. Most of these have auto-shutdown and auto-start enabled, and I don't want to disrupt that schedule.
So I decided to follow the official docs (https://learn.microsoft.com/en-us/azure/automation/update-management/pre-post-scripts) to configure startup before windows patches and shutdown after the maintenance window completes by using pre/post scripts:
The only description for the runbooks are to install the ThreadJobs module, which I have done. In addition I have updated all the modules.
But the scripts fail with:
At line:95 char:2 + var msDocs = { + ~~~ The 'var' keyword is not supported in this version of the language. At line:97 char:25 + timeOrigin: Date.now(), + ~ An expression was expected after '('. At line:121 char:30 + hasRecommendations: false, + ~ Missing expression after ',' in pipeline element. At line:153 char:11 + </header> </div> + ~ The '<' operator is reserved for future use. At line:179 char:12 + <!-- <content> --> + ~ The '<' operator is reserved for future use. At line:198 char:12 + <!-- </content> --> + ~ The '<' operator is reserved for future use. At line:255 char:11 + Light </span> + ~ The '<' operator is reserved for future use. At line:279 char:10 + Dark </span> + ~ The '<' operator is reserved for future use. At line:303 char:19 + High contrast </span> + ~ The '<' operator is reserved for future use. At line:308 char:9 + </div> </div> + ~ The '<' operator is reserved for future use. Not all parse errors were reported. Correct the reported errors and try again
None of the links in the runbook (which are HTML/.js code, why is it categorized as a powershell runbook?) gives me any information.
How are you suppose to make these runbooks work?