Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Question on compare and format

$
0
0

Hi there
I'm away from the office so cannot post you the exact code i'm working on right now.
In my script, I'm defining a ordered dictionary called DLLInfo =[ordered]@{} and then creating 2 Items to it called DLLInfo.Server1 and DLLInfo.Server2

To each of these items I'm passing the value of a function which returns the file version of a bunch of DLLs on that server

DLLInfo.Server1 = function_get_dlls_info()
DLLInfo.Server2 = function_get_dlls_info()

Alongside my report which I have managed to extract, I wanted to do some conditional formatting to compare output of DLLInfo.Server1 and DLLInfo.Server2, highlight the difference in red. Please can you advice me on how I can achieve this.


Just for info, the output of this ordered dictionary DLLInfo =[ordered]@{} is then passed onto another array called DLLReport which is then converted to html with CSS,


Viewing all articles
Browse latest Browse all 6937

Trending Articles