# OPS-8: Scripting Basics Status: not started Domain: - 4.0 Operational Procedures Objective alignment: - 4.8 Scripting languages, use cases, and risks ## What You Need To Know Scripts automate repeated tasks, but they can also break systems quickly. Script types: - `.bat` - `.ps1` - `.vbs` - `.sh` - `.js` - `.py` Use cases: - Automation - Restarting machines - Remapping drives - Application installs - Backups - Data gathering - Updates Risks: - Introducing malware - Changing system settings - Deleting data - Crashing browsers or systems - Mishandling resources ## Memory Trick Use **A-R-I-B-D**: - **A**utomate - **R**estart - **I**nstall - **B**ack up - **D**ata gathering Shortcut: - **Scripts are force multipliers for both fixes and mistakes.** ## Exam Clues - PowerShell scripts use `.ps1`. - Bash shell scripts commonly use `.sh`. - Batch files use `.bat`. - Test scripts before broad deployment. - Review scripts from unknown sources before running.