Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
CompTIA Server+ · CompTIA
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Login and Logout Scripts Some scripts execute based on the user. For example, a login script runs when a user logs in. The script customizes the user’s environment, maps network drives, and automatically launches a particular application. Logout scripts execute when the user signs off. These scripts might delete temp files or copy the user’s data to a network server. The Official CompTIA Server+ Study Guide (Exam SK0-005) page 160. SHELL LANGUAGES Scripts are written using a shell language. The shell is the server’s command-line environment. The default shell for Linux is bash. Windows has two shells: cmd.exe and PowerShell, although Microsoft emphasizes PowerShell. As a general rule, a script written for one shell, such as PowerShell, will not be understood by another shell, such as bash. The system must have the appropriate shell installed to process the script.
(cont.) Types of scripts: Batch file -- a series of commands, usually based on MS-DOS, that execute with limited additional functionality. Bash script -- a script written in bash language that contains commands, variables, constructs, and other components. Bash scripts are almost always written for Linux systems. PowerShell script -- a script written in the PowerShell language that contains cmdlets (PowerShell commands), variables, constructs, and other components. PowerShell scripts are almost always written for Windows systems. VBS script -- a script written in the VBScript language. Microsoft has deprecated VBScript, but there have been many VBScript scripts written over the years. VBScript scripts are almost always written for Windows systems. The Official CompTIA Server+ Study Guide (Exam SK0-005) page 154.
B is the correct answer to this question