Software Module 5
Software Module 5
There are many scripting languages available to use for a variety of tasks in
different operating system environments. Most scripts are written in command line
environments.
PowerShell (.ps1) - Windows PowerShell is among the most common command line
scripting tools used in Windows environments. PowerShell is built on the .NET
platform and employs many of the same elements that programming languages do.
PowerShell scripts are used for building, testing, and deploying solutions, in
addition to automating system management.
Batch scripts (.bat) - Batch scripts, also called batch files, have been around
since the early days of MS DOS and OS/2. Batch files can execute simple tasks, like
calling a set of programs to run when a computer boots up. This type of script
could be useful in setting up employees’ workspaces when they power on their
computers.
Visual Basic Script (.vbs) - Visual Basic Script is an older scripting language. It
has reached its end of life for Microsoft support and has been replaced by
PowerShell scripts. However, as an IT professional, you may encounter .vbs scripts
on some legacy systems.
Shell script (.sh) - Shell scripting languages, like Bash, are used in Unix or
Linux environments. The scripts are often used to manipulate files, including
changing file security settings, creating, copying, editing, renaming and deleting
files. They can also be used to execute programs, print, navigate the operating
system, and much more. The scripts run in command-line interpreter (CLI) shells,
such as the Bourne shell, Bourne Again SHell (Bash), C shell, and Korn (KSH) shell.
JavaScript (.js) - JavaScript the most used programming language in the world. It
is a lightweight language that is used for scripting in web development, mobile and
web apps, games, and more. It can also be used to develop software and automate web
server functions.
Restarting machines: Many power users use PowerShell (.ps1) scripts to restart
machines (Windows). For Linux machines, they can use .sh (shell) scripts.
Mapping network drives: In the past, mapping network drives was accomplished
with .bat or .vbs scripts. However, PowerShell scripts are most commonly used to
map drives in Windows environments today. For Linux users, shell scripts can be
used for this purpose.
Installing applications: Batch files and shell scripts are often used for automated
software installation.
Automated Backups: Windows PowerShell and Linux/Unix shell scripts can automate
backups.
Gathering of information and data: Python is a popular choice for gathering data.
Python has many available libraries to help with this task.
Initiating Updates: Powershell and shell scripts can be used for initiating updates
in Windows and Linux, respectively.
Inadvertently changing system settings: Scripts are powerful tools for changing
system settings. Using the wrong script can cause the user to inadvertently
configure harmful settings. For example, one minor typo in a shell script that sets
file permission security in Linux could make confidential files accessible to the
world.
Key takeaways
A basic knowledge of scripting is an important tool for IT professionals. You may
need to improve workflow efficiency by automating basic functions with a scripting
language. Some common scripting languages include:
Windows environments: batch scripts (.bat), Powershell (.ps1), Visual Basic Script
(.vbs)
Basic Automation
Restarting Machines
Installing Applications
Automating Backups
Initiating Updates
Compilers - are a key component to programming, and helped to pave the road that
led us to today's modern computing.
Automating basic functions is basic knowledge of scripting an important tool for IT
professionals have
Git - A version control system that helps keep track of changes made to files and
directories
Application software: Any software created to fulfill a specific need, like a text
editor, web browser, or graphics editor
GIT: A version control system that helps keep track of changes made to files and
directories
Software management: A broad term used to refer to any and all kinds of software
that are designed to manage or help manage some sort of project or task
System software: Software used to keep our core system running, like operating
system tools and utilities