220-1102 - Operational Procedures (22% of the exam) - Section 4.8

Identify the basics of scripting and use remote access technologies safely.

Recognise common scripting file types (.bat, .ps1, .vbs, .sh, .py, .js) and their typical use cases - basic automation, restarting machines, remapping drives, installing applications, and automated backups - along with the risks of running an unverified script. Compare remote access technologies (RDP, VPN, SSH, VNC, MSRA, third-party tools) and choose the secure option for a support scenario, weighing the security considerations of each.

Scripting file typesPowerShellRDPSSHRemote access security

Practice question for this objective

Free sampleOperational Proceduresmedium

A colleague sends Priya a maintenance script named diskcleanup.ps1 to run on a Windows 11 workstation. Which scripting environment is this file designed for?

  • AThe Windows Command Prompt, which executes legacy batch instructions line by line.
  • BA Unix or Linux Bash shell, which runs plain shell script files directly.
  • CThe Python interpreter, which executes interpreted source code at runtime.
  • DWindows PowerShell, whose scripts use the .ps1 file extension. Correct
Recognise that a .ps1 file extension identifies a Windows PowerShell script and maps to the PowerShell scripting environment. Script file extensions signal the interpreter that runs them. The .ps1 extension is registered to Windows PowerShell, so the shell parses and executes the file as PowerShell code rather than as batch, Bash, or Python.

Why A is wrong: Command Prompt runs batch files, but those carry a .bat or .cmd extension, not .ps1, so this environment does not match the file.

Why B is wrong: Bash is a real interpreter, but shell scripts use the .sh extension and Bash is not native to a standard Windows workstation.

Why C is wrong: Python is a genuine interpreted language, but its scripts use the .py extension and require Python to be installed separately.

Why D is correct: A .ps1 file is a PowerShell script and is interpreted by the PowerShell engine, so this is the correct environment for it.

See more 220-1102 practice questions, answers explained.

Exam traps in Operational Procedures

Answers that look right on this material and are not. Each one is a distractor from a different question in the 220-1102 bank for this domain.

  • .bat

    Why it is wrong: Tempting because .bat is a Windows scripting extension, but it denotes a legacy batch file run by cmd.exe, not a PowerShell script.

  • A .bat batch file, run by the Windows command interpreter

    Why it is wrong: Batch runs natively on Windows, which makes it tempting, but it processes plain text only and cannot pipe rich directory objects between commands.

  • A .ps1 PowerShell script scheduled through the cron table

    Why it is wrong: PowerShell does run cross-platform now, which tempts, but it is not installed by default on most Linux servers and cron expects a native shell script.

Examworthy is not affiliated with or endorsed by CompTIA. Original, blueprint-aligned practice material only.