nerdexam
CompTIA

220-1102 · Question #388

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

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

How the community answered

(22 responses)
  • C
    95% (21)
  • D
    5% (1)

Why each option

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

Awinmgmt.exe

winmgmt.exe is related to Windows Management Instrumentation (WMI), a core component for managing Windows, but it does not directly execute .vbs script files.

Bpowershell.exe

powershell.exe executes PowerShell scripts (.ps1 files) and commands, not VBScript (.vbs) files.

Ccscript.exeCorrect

cscript.exe is the command-line version of the Windows Script Host (WSH) and is specifically designed to execute VBScript (.vbs) and JScript (.js) files from the command prompt or within scripts, making it the most likely executable to run .vbs files directly. The graphical version is wscript.exe.

Dexplorer.exe

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

Source: 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 Practice