A system administrator is organizing various administrative scripts used across an enterprise network. Match each script file extension to its corresponding default execution environment or interpreter.
- .ps1Windows PowerShell runtime environment
- .batWindows Command Prompt (cmd.exe)
- .vbsWindows Script Host (cscript.exe / wscript.exe)
- .shLinux/Unix Shell terminal (Bash / Zsh)
Answer
The .ps1 extension matches the Windows PowerShell environment; .bat matches Windows Command Prompt; .vbs matches Windows Script Host; and .sh matches the Linux/Unix Shell terminal.
Each file extension maps directly to its native administrative execution environment: .ps1 relies on PowerShell, .bat uses cmd.exe, .vbs uses Windows Script Host, and .sh uses Unix-based shell environments like Bash or Zsh.
Step-by-Step Solution
Key Concept
Scripting File Extensions and Execution Environments
Estimated Time:1m 0s