nerdexam
CompTIACompTIA

220-1102 · Question #388

220-1102 Question #388: Real Exam Question with Answer & Explanation

The correct answer is C: cscript.exe. VBScript (.vbs) files on Windows devices are primarily executed by the Windows Script Host, with cscript.exe being the command-line interpreter.

Operating Systems

Question

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

Options

  • Awinmgmt.exe
  • Bpowershell.exe
  • Ccscript.exe
  • Dexplorer.exe

Explanation

VBScript (.vbs) files on Windows devices are primarily executed by the Windows Script Host, with cscript.exe being the command-line interpreter.

Common mistakes.

  • A. winmgmt.exe is related to Windows Management Instrumentation (WMI), a core component for managing Windows, but it does not directly execute .vbs script files.
  • B. powershell.exe executes PowerShell scripts (.ps1 files) and commands, not VBScript (.vbs) files.
  • D. explorer.exe is the Windows shell that manages the graphical user interface, file browsing, and launching applications; it does not directly execute .vbs script files in the context of being their interpreter.

Concept tested. Windows scripting interpreters

Reference. https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc759550(v=technet.10)

Topics

#Windows Script Host#VBScript#Command-line utilities#Script execution

Community Discussion

No community discussion yet for this question.

Full 220-1102 PracticeBrowse All 220-1102 Questions