Exam 220-1202 Topic 1 Question 256 Discussion

Actual exam question for CompTIA's 220-1202 exam
Question #: 256
Topic #: 1
An administrator must write a script that will output the OS name to a file. Which of the following commands is the best way to accomplish this task?

Suggested Answer: D Vote an answer

The winver command displays the Windows operating system name and version information.
This makes it the appropriate command to use in a script when the requirement is to output the OS name to a file.

by Dana at Jul 26, 2026, 03:57 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10