Scripting & Remote Access Technologies

Key Takeaways

  • Common scripting languages for IT: PowerShell (.ps1) for Windows automation, Bash (.sh) for Linux/macOS, Python (.py) for cross-platform scripting, Batch (.bat) for simple Windows tasks, and VBScript (.vbs) for legacy Windows scripting.
  • Remote access tools include RDP (port 3389, Windows), VNC (port 5900, cross-platform), SSH (port 22, Linux/macOS/Windows), and screen-sharing tools like Microsoft Quick Assist and TeamViewer.
  • Remote Monitoring and Management (RMM) tools allow IT departments to manage multiple endpoints remotely — installing updates, deploying software, and monitoring health across the organization.
  • Scripts should be reviewed before execution to ensure they do not contain malicious code — never run scripts from untrusted sources.
  • PowerShell execution policies (Restricted, AllSigned, RemoteSigned, Unrestricted) control whether scripts can run and must be configured appropriately to balance security and functionality.
Last updated: March 2026

Scripting & Remote Access Technologies

Scripting Languages for IT

Common Script Types

LanguageExtensionPlatformUse Cases
PowerShell.ps1Windows (also cross-platform)Windows automation, Active Directory, system management
Bash.shLinux, macOSSystem administration, file management, cron jobs
Python.pyCross-platformAutomation, data processing, API integration
Batch.bat, .cmdWindowsSimple file operations, startup scripts
VBScript.vbsWindows (legacy)Login scripts, legacy automation (being replaced by PowerShell)
JavaScript.jsCross-platformWeb automation, Node.js server scripts

Scripting Use Cases in IT

TaskScript TypeExample
Automated user creationPowerShellCreate 50 Active Directory users from a CSV file
Backup automationBash/PowerShellNightly backup of specific folders to network share
Log analysisPythonParse log files to identify error patterns
Disk cleanupBatch/PowerShellDelete temp files older than 30 days
Software deploymentPowerShellSilently install software on multiple computers
System inventoryPowerShell/PythonCollect hardware info from all networked computers
Scheduled tasksBash (cron)/PowerShell (Task Scheduler)Run maintenance scripts at set times

PowerShell Execution Policies

PolicyBehavior
RestrictedNo scripts can run (default on Windows)
AllSignedOnly scripts signed by a trusted publisher can run
RemoteSignedDownloaded scripts must be signed; local scripts can run
UnrestrictedAll scripts can run (warns for downloaded scripts)
BypassNothing is blocked, no warnings (use for automation)

Security Best Practice: Use RemoteSigned as a minimum for production environments. Never use Unrestricted or Bypass in production unless absolutely necessary.

Script Safety

  • Always review scripts before running them — even from trusted sources
  • Never run scripts from unknown sources — they may contain malware or destructive commands
  • Test scripts in a sandbox or test environment before running on production systems
  • Use comments in scripts to explain what each section does
  • Implement error handling to prevent partial execution failures

Remote Access Technologies

Remote Desktop Protocol (RDP)

FeatureDetail
PortTCP 3389
PlatformBuilt into Windows (Pro/Enterprise host)
SecurityTLS encryption, Network Level Authentication (NLA)
Use CaseFull remote desktop access to Windows machines
LimitationOnly one user session at a time (standard Windows)

SSH (Secure Shell)

FeatureDetail
PortTCP 22
PlatformLinux, macOS, Windows (OpenSSH)
SecurityEncrypted command-line access, public key authentication
Use CaseRemote administration of servers and network devices
RelatedSCP (secure file copy), SFTP (secure file transfer)

VNC (Virtual Network Computing)

FeatureDetail
PortTCP 5900
PlatformCross-platform (Windows, macOS, Linux)
SecurityBasic (use VPN tunnel for security)
Use CaseCross-platform remote desktop access

Other Remote Tools

ToolDescription
Microsoft Quick AssistBuilt-in Windows tool for remote support (requires Microsoft account)
TeamViewerCross-platform commercial remote support
AnyDeskLightweight cross-platform remote access
Chrome Remote DesktopBrowser-based remote access through Google Chrome

Remote Monitoring and Management (RMM)

RMM platforms allow IT teams to manage large numbers of endpoints remotely:

CapabilityDescription
Patch ManagementDeploy OS and application updates remotely
Software DeploymentInstall/remove software across many devices
MonitoringTrack device health, performance, and alerts
Remote AccessConnect to any managed device for support
ScriptingRun scripts across multiple devices simultaneously
ReportingGenerate compliance, inventory, and health reports

Common RMM Platforms: ConnectWise, Datto, NinjaRMM, Syncro, ManageEngine


Video Conferencing and Collaboration

Modern IT support includes managing collaboration tools:

ToolFeatures
Microsoft TeamsChat, video calls, screen sharing, file sharing, integration with Microsoft 365
ZoomVideo conferencing, screen sharing, recording, breakout rooms
SlackTeam messaging, channels, integrations, screen sharing
Google MeetVideo calls, screen sharing, integration with Google Workspace

Screen Sharing Best Practices

  • Close personal or sensitive applications before sharing
  • Share specific windows rather than entire desktop when possible
  • Use annotation tools to highlight relevant areas
  • Record sessions for documentation when appropriate
Test Your Knowledge

Which scripting language uses the .ps1 file extension and is the primary automation tool for Windows administration?

A
B
C
D
Test Your Knowledge

What port does SSH use for secure remote command-line access?

A
B
C
D
Test Your Knowledge

What is the MOST secure PowerShell execution policy for a production environment?

A
B
C
D
Test Your KnowledgeMatching

Match each remote access tool to its default port:

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

1
RDP
2
SSH
3
VNC
4
HTTPS