Securing Windows Server 2016 — Question 52
You have a server named Server1 that runs Windows Server 2016.
You configure Just Enough Administration (JEA) on Server1.
You need to view a list of commands that will be available to a user named User1 when User1 establishes a JEA session to Server1.
Which cmdlet should you use?
Answer options
- A. Get-PSSessionCapability
- B. Trace-Command
- C. Show-Command
- D. Get-PSSessionConfiguration
Correct answer: A
Explanation
The correct answer is A, Get-PSSessionCapability, as it specifically lists the commands available to a user in a JEA session. The other options do not provide this capability: B (Trace-Command) is for tracing command execution, C (Show-Command) is for displaying commands but not for JEA session capabilities, and D (Get-PSSessionConfiguration) retrieves session configurations but not the specific capabilities for a user.