Multiple choice technology

What action the below script will perform? \$strComputer = “Remote Computer Name” \$computer = [ADSI](“WinNT://” + $strComputer + “,computer”) \$group = \$computer.psbase.children |where{\$_.psbase.schemaclassname -eq “group”} foreach (\$member in \$group.psbase.syncroot) {\$member.name}

  1. List the names of all the local Groups available in a Remote computer

  2. List the names of all the local Groups available in a Remote computer and find members of each group

  3. None of the above

  4. All of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The script connects to a remote computer using the WinNT ADSI provider, filters for objects with schemaClassName group (which retrieves all local group objects), then iterates through them and outputs each group's name. It does not list group members - it only lists the group names themselves.