-
What is PowerShell?
-
A Windows scripting environment with cmdlets for managing Windows components.
-
What is the extension for PowerShell scripts?
-
PS1
-
What is VBScript used for?
-
A legacy Windows scripting language for automation tasks. Extension: .VBS
-
What is a batch file?
-
A shell script for the Windows CMD interpreter, with a .BAT extension.
-
What is JavaScript mainly used for?
-
Implementing interactive web content and web applications.
-
What extension is commonly associated with JavaScript files?
-
.JS
-
What is Python used for in scripting?
-
General-purpose scripting and programming for automation and application development.
-
What are Python’s common file extensions?
-
.PY for console scripts, .PYW for windowed scripts.
-
What is the OS module in Python?
-
It allows Python scripts to access OS functions like file management and processes.
-
How does "restarting machines" in scripts help?
-
Automates reboots required after updates or installations, like using shutdown -r in Linux.
-
What is New-PSDrive used for in PowerShell?
-
Mapping network drives in Windows.
-
Which of the following script commands initiates an application install in Windows scripts?
-
msiexec /i
-
What is automated backup in scripting?
-
Using scripts to automatically copy files or data at scheduled times.
-
How does the grep command function in Linux?
-
It searches and filters text based on patterns.
-
Why is error handling important in scripting?
-
Prevents the script from failing unexpectedly, ensuring smooth execution.
-
What is malware risk in scripting?
-
Custom scripts can be modified to install malware or perform unauthorized tasks.
-
How can system settings be accidentally changed through scripts?
-
Scripts may unintentionally disable security or alter firewall settings.
-
How do scripts handle resource management to avoid crashes?
-
Proper testing and monitoring prevent issues like excessive storage usage or infinite loops.