Last active
August 21, 2019 20:00
-
-
Save EklipZgit/ef267692c1752ff76cae9b3ea0684d75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$json = @' | |
[ | |
{ | |
"Server": "LAX-WEB01", | |
"Software": ["Adobe","Java","Flash","Chrome","IE","Norton"] | |
}, | |
{ | |
"Server": "LAX-WEB02", | |
"Software": ["Java","Norton","Flash"] | |
}, | |
{ | |
"Server": "LAX-WEB03", | |
"Software": ["Flash","IE","Chrome","Norton","Adobe"] | |
}, | |
{ | |
"Server": "LAX-WEB04", | |
"Software": ["Java","Adobe","Flash","IE","Chrome"] | |
}, | |
{ | |
"Server": "LAX-WEB05", | |
"Software": ["Flash","Norton","Jira"] | |
} | |
] | |
'@ | |
$serverDataList = $json | ConvertFrom-Json | |
# Task 1: Output the server objects or names that have 'Java' installed | |
# Task 2: Find sofware that is installed on all servers | |
# Task 3.A: Find sofware that is installed on only one server | |
# Task 3.B: Find sofware that is installed on only one server, and list those servers | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment