SANS560 GIAC Penetration Tester (GPEN) Practice Test

Access More Questions
Which practice improves PowerShell usability by shortening flags?
Correct Answer:
Command flag shortening
Explanation:
PowerShell can accept shortened, unambiguous parameter names, so you can type a shorter flag instead of the full parameter name. This directly speeds how you specify options because the shell will bind to the intended parameter as long as the prefix you type uniquely identifies it. For example, if a cmdlet has a parameter named Recurse, you can often use Rec as long as no other parameter starts with Rec, and PowerShell will treat it as -Recurse. This reduces keystrokes and friction when building commands, which is exactly what shortening flags aims to achieve. Tab Autocomplete helps you type faster by filling in the rest after you start typing, but it’s a broader usability aid rather than shortening the flag itself. Profile scripts and verbose output don’t address shortening the flags you type.

Access more questions from this quiz

Continue to SANS560 GIAC Penetration Tester (GPEN) Practice Test for more practice questions and the full quiz experience.

Access More Questions