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.
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)- C95% (21)
- D5% (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.
winmgmt.exe is related to Windows Management Instrumentation (WMI), a core component for managing Windows, but it does not directly execute .vbs script files.
powershell.exe executes PowerShell scripts (.ps1 files) and commands, not VBScript (.vbs) files.
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.
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
Community Discussion
No community discussion yet for this question.