exam questions

Exam 220-1102 All Questions

View all questions & answers for the 220-1102 exam

Exam 220-1102 topic 1 question 332 discussion

Actual exam question from CompTIA's 220-1102
Question #: 332
Topic #: 1
[All 220-1102 Questions]

Which of the following is most likely used to run .vbs files on Windows devices?

  • A. winmgmt.exe
  • B. powershell.exe
  • C. cscript.exe
  • D. explorer.exe
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Philco
8 months, 3 weeks ago
Selected Answer: C
Cscript.exe is the main executable for Windows Script Host (WSH). It is essentially the command-line version of the WSH service and facilitates command-line options for setting up script properties. With Cscript, scripts can be run automatically or by simply typing the name of the script file inside the command prompt.
upvoted 1 times
Philco
8 months, 3 weeks ago
Cscript.exe is a Windows console-based script host that's part of the Windows Script Host module. It's used to start scripts so they can run in a command-line environment. Here are some things to know about cscript.exe: Output: Cscript sends its output to the command window it was started in, while WScript generates windowed output. File extensions: Windows script files often have the following extensions: .wsf, .vbs, .js. Registering as default script host: To register cscript as the default script host for a file type, double-click a script file with an unknown extension, select Open With, then cscript, and finally Always use this program to open this file type.
upvoted 2 times
...
...
Mamad66
1 year, 1 month ago
Selected Answer: C
program used to run .vbs (VBScript) files on Windows devices is C. cscript.exe. This is a command-line version of the Windows Script Host that provides command-line options for setting script properties. The other options are not primarily used for running .vbs files: A. winmgmt.exe is the Windows Management Instrumentation (WMI) service and is not used for running .vbs files. B. powershell.exe is the Windows PowerShell command line shell, a scripting language from Microsoft built on .NET Framework. D. explorer.exe is the user shell, which we see as the familiar taskbar, desktop, and other user interface features. This process isn’t used to run scripts.
upvoted 2 times
...
kekejon
1 year, 5 months ago
Selected Answer: C
C. cscript.exe .vbs files (VBScript files) are typically executed using the Windows Script Host (WSH), and one of the common ways to run VBScript files is through the command-line script host tool, cscript.exe. This tool is designed to run scripts in command-line mode and provides a way to execute VBScript code.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...