Cisco UCS script is still using the old way to call the Style sheet on lines 27-30 this in turns makes the Style fail to apply and does not create the Table of Contents
Current
If custom style not set, use Cisco style
if (!$StyleName) {
.\Styles\Cisco.ps1
}
Solution
If custom style not set, use Cisco style
if (!$StyleName) {
& "$PSScriptRoot....\Styles\Cisco.ps1"
}
Cisco UCS script is still using the old way to call the Style sheet on lines 27-30 this in turns makes the Style fail to apply and does not create the Table of Contents
Current If custom style not set, use Cisco style if (!$StyleName) { .\Styles\Cisco.ps1 }
Solution If custom style not set, use Cisco style if (!$StyleName) { & "$PSScriptRoot....\Styles\Cisco.ps1" }