Sub topic 2
What Scripts Are Used for in Support Work
Assume you can use a basic Windows command line and Linux shell. You should also know file paths, IP addresses, ports, and firewalls.
Automating Support Tasks
A script is a text file containing commands that an interpreter runs in order. Technicians use scripts to repeat tasks consistently and save time. Common tasks include:
- Copying user files to a backup location.
- Mapping a network drive.
- Collecting hardware, software, or network information.
- Checking whether services are running.
- Applying the same configuration to many computers.
For example, this Windows batch script maps a shared folder and checks whether the command succeeded:
@echo off
net use Z: \\fileserver\shared /persistent:yes
if %ERRORLEVEL% EQU 0 (
echo Drive Z: mapped.
) else (
echo Mapping failed.
)The if statement creates a condition. The script displays a different result based on the command's exit code.
Script Risks and Safe Handling
A script can make changes much faster than a technician working manually. That speed also increases the damage from an error. Risks include malware, deleting or overwriting files, changing security settings, exposing passwords, and using excessive CPU, memory, or storage.
Review a script before running it. Confirm its source, understand commands that modify or delete data, test it on a nonproduction computer, and run it with the least privilege needed. Keep backups before bulk changes. Do not place passwords directly in a script.
Remote Access at a Glance
Remote access lets a technician work with a computer or network from another location. The best method depends on whether you need a graphical desktop, command-line control, private-network access, or attended user support.
| Method | Typical purpose |
|---|---|
| RDP | Remote Windows desktop administration |
| VNC | Cross-platform screen sharing |
| SSH | Encrypted command-line administration |
| VPN | Secure connection into a private network |
| RMM | Centralized monitoring and unattended support |
RDP: Remote Windows Desktops
Remote Desktop Protocol (RDP) provides a graphical Windows session over a network. It is useful for administering Windows computers when you need to open applications, inspect settings, or manage users. RDP normally uses TCP port 3389. Restrict access with a VPN or firewall, require strong authentication, and avoid exposing RDP directly to the public internet.
VNC: Cross-Platform Screen Sharing
Virtual Network Computing (VNC) shares a computer's screen and accepts keyboard and mouse input. It works across operating systems, which makes it useful when the technician and user have different platforms. VNC implementations vary, so encryption and authentication must be checked rather than assumed.
Exercise
Which method best fits unattended administration of a Windows computer: RDP or VNC?
Show answer
RDP is usually the better fit because it provides a native Windows administrative desktop. Secure it with strong authentication and restricted network access.