Scripting & Remote Access Technologies

Key Takeaways

  • Objective 4.8 script file types: .bat (Windows batch), .ps1 (PowerShell), .vbs (VBScript), .sh (shell/Bash), .js (JavaScript), and .py (Python) — match the extension to its platform and use case.
  • Scripting use cases CompTIA names: basic automation, restarting machines, remapping network drives, installing applications, automating backups, gathering information/data, and initiating updates.
  • Other considerations when scripting: unintentionally introducing malware, inadvertently changing system settings, and unintended browser/system crashes from mishandled resources.
  • Remote tools and ports to know: RDP (TCP 3389), SSH (TCP 22), VNC, Telnet (23, insecure), plus screen-sharing/RMM/MSP tools, third-party remote tools, and the security considerations of each.
  • RDP is Windows-native and encrypted (use NLA); Telnet is plaintext and should be replaced by SSH; VNC is cross-platform but should be tunneled; RMM lets a managed service provider patch and support endpoints at scale.
Last updated: June 2026

Script File Types (Know the Extension)

Objective 4.8 tests you on recognizing script types by file extension and knowing where each runs. The exam will not ask you to write code, but it will show a filename and ask what it is.

ExtensionLanguagePlatformTypical Use
.batBatchWindowsSimple file ops, legacy logon tasks
.ps1PowerShellWindows (cross-platform via Core)Active Directory, system management
.vbsVBScriptWindows (legacy)Old logon scripts, being phased out
.shShell/BashLinux, macOSAdmin tasks, cron jobs
.jsJavaScriptCross-platformWeb/Node automation
.pyPythonCross-platformGeneral automation, APIs, parsing

Scripting Use Cases CompTIA Lists

Objective 4.8 enumerates the use cases below — expect a scenario that maps to one:

  • Basic automation of repetitive tasks
  • Restarting machines on a schedule
  • Remapping network drives at logon
  • Installing applications silently across many PCs
  • Automating backups
  • Gathering information/data (inventory, logs)
  • Initiating updates to OS or applications

Risks of Running Scripts

CompTIA explicitly lists "other considerations" — the dangers of scripting:

RiskExample
Unintentionally introducing malwareRunning an untrusted .ps1 from the web
Inadvertently changing system settingsA typo that disables a service on every host
Browser or system crashesA loop that exhausts memory/CPU resources

Best practice: Review every script, run it in a test/sandbox environment first, and never execute scripts from untrusted sources. PowerShell execution policies (Restricted, AllSigned, RemoteSigned, Unrestricted, Bypass) gate this — RemoteSigned is the sensible production baseline because it requires downloaded scripts to be signed while allowing trusted local scripts.

Remote Access Technologies and Ports

Objective 4.9 covers remote tools and their security considerations. Memorize the ports — they appear on both Core 1 and Core 2.

ToolPortPlatformSecurity Note
RDP (Remote Desktop)TCP 3389Windows-native (Pro/Ent host)Encrypted; enable Network Level Authentication (NLA)
SSH (Secure Shell)TCP 22Linux/macOS/WindowsEncrypted CLI; use key auth
TelnetTCP 23LegacyPlaintext — insecure; replace with SSH
VNCTCP 5900 (typical)Cross-platformWeak by default; tunnel over VPN/SSH

Other remote/support tools CompTIA names include Microsoft Remote Assistance / Quick Assist, third-party remote tools (TeamViewer, AnyDesk), screen-sharing software, video-conferencing software, file-transfer software, and desktop management software.

Remote Monitoring and Management (RMM)

RMM lets a managed service provider (MSP) or internal IT team manage many endpoints centrally: deploy patches, push/remove software, run scripts fleet-wide, monitor health, and remote into any managed device. Its power is also its risk — a compromised RMM tool can push malicious changes to every endpoint, so access is tightly controlled and audited.

Worked example: A help desk must securely manage a Linux server in another building. The correct A+ choice is SSH on TCP 22 (encrypted command line) rather than Telnet on 23 (plaintext credentials) — and for a graphical Windows host they would use RDP on 3389 with NLA. Matching the protocol to the platform and to its security posture is exactly what objective 4.9 rewards.

How Scripting and Remote Questions Are Framed

For scripting, the exam does not expect you to read or write code. It expects you to recognize a file by its extension, name the platform it runs on, and connect it to a plausible administrative task. A scenario describing the need to map a network drive automatically at every logon points to a logon script; one describing the need to install the same application silently on dozens of machines points to a deployment script run from a management tool. The exam also tests judgment about the dangers of automation.

A script that runs across many endpoints multiplies both productivity and risk, so the safe, exam-correct habit is to review the code, run it first in a sandbox or test environment, and avoid executing scripts from untrusted sources. PowerShell execution policies appear here because they are the mechanism that enforces this discipline; remembering that RemoteSigned blocks unsigned downloaded scripts while permitting trusted local ones is usually enough to answer the policy question.

Remote-access questions are essentially security questions in disguise. The exam wants you to pick the protocol whose encryption and platform fit the scenario, and to reject insecure or mismatched options. Telnet is the classic wrong answer whenever security matters, because it sends credentials and commands in cleartext; the correct replacement for command-line management is SSH on port 22. For a graphical Windows session the answer is RDP on port 3389, ideally with Network Level Authentication enabled so the connection is authenticated before a session is created.

VNC is the cross-platform graphical option, but because its default security is weak the exam-correct practice is to tunnel it through a virtual private network or SSH rather than exposing it directly.

RMM, MSPs, and Their Risk

Remote monitoring and management deserves special attention because it scales a single action to an entire fleet. A managed service provider or internal team uses an RMM platform to deploy patches, push or remove software, run scripts everywhere at once, monitor device health, and remote into any managed endpoint for support. The exam frames this capability as a double-edged sword: the same central control that lets one technician patch a thousand machines also means a compromised RMM agent or stolen administrator credential can push malware to all of them. That is why RMM access is tightly restricted, multifactor-protected, and audited.

When a scenario asks how an MSP supports many remote clients efficiently, the answer is the RMM platform; when it asks about the primary risk of that model, the answer is the blast radius of a single compromised management channel.

Test Your Knowledge

A technician sees a file named cleanup.ps1. Which scripting environment runs it, and on what platform is it native?

A
B
C
D
Test Your Knowledge

Which protocol and port should replace Telnet for secure remote command-line administration of a server?

A
B
C
D
Test Your Knowledge

Which item is listed by CompTIA as a risk specifically associated with running scripts?

A
B
C
D
Test Your KnowledgeMatching

Match each remote-access protocol to its default port:

Match each item on the left with the correct item on the right

1
RDP
2
SSH
3
Telnet
4
HTTPS