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
| Language | Extension | Platform | Use Cases |
|---|---|---|---|
| PowerShell | .ps1 | Windows (also cross-platform) | Windows automation, Active Directory, system management |
| Bash | .sh | Linux, macOS | System administration, file management, cron jobs |
| Python | .py | Cross-platform | Automation, data processing, API integration |
| Batch | .bat, .cmd | Windows | Simple file operations, startup scripts |
| VBScript | .vbs | Windows (legacy) | Login scripts, legacy automation (being replaced by PowerShell) |
| JavaScript | .js | Cross-platform | Web automation, Node.js server scripts |
Scripting Use Cases in IT
| Task | Script Type | Example |
|---|---|---|
| Automated user creation | PowerShell | Create 50 Active Directory users from a CSV file |
| Backup automation | Bash/PowerShell | Nightly backup of specific folders to network share |
| Log analysis | Python | Parse log files to identify error patterns |
| Disk cleanup | Batch/PowerShell | Delete temp files older than 30 days |
| Software deployment | PowerShell | Silently install software on multiple computers |
| System inventory | PowerShell/Python | Collect hardware info from all networked computers |
| Scheduled tasks | Bash (cron)/PowerShell (Task Scheduler) | Run maintenance scripts at set times |
PowerShell Execution Policies
| Policy | Behavior |
|---|---|
| Restricted | No scripts can run (default on Windows) |
| AllSigned | Only scripts signed by a trusted publisher can run |
| RemoteSigned | Downloaded scripts must be signed; local scripts can run |
| Unrestricted | All scripts can run (warns for downloaded scripts) |
| Bypass | Nothing 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)
| Feature | Detail |
|---|---|
| Port | TCP 3389 |
| Platform | Built into Windows (Pro/Enterprise host) |
| Security | TLS encryption, Network Level Authentication (NLA) |
| Use Case | Full remote desktop access to Windows machines |
| Limitation | Only one user session at a time (standard Windows) |
SSH (Secure Shell)
| Feature | Detail |
|---|---|
| Port | TCP 22 |
| Platform | Linux, macOS, Windows (OpenSSH) |
| Security | Encrypted command-line access, public key authentication |
| Use Case | Remote administration of servers and network devices |
| Related | SCP (secure file copy), SFTP (secure file transfer) |
VNC (Virtual Network Computing)
| Feature | Detail |
|---|---|
| Port | TCP 5900 |
| Platform | Cross-platform (Windows, macOS, Linux) |
| Security | Basic (use VPN tunnel for security) |
| Use Case | Cross-platform remote desktop access |
Other Remote Tools
| Tool | Description |
|---|---|
| Microsoft Quick Assist | Built-in Windows tool for remote support (requires Microsoft account) |
| TeamViewer | Cross-platform commercial remote support |
| AnyDesk | Lightweight cross-platform remote access |
| Chrome Remote Desktop | Browser-based remote access through Google Chrome |
Remote Monitoring and Management (RMM)
RMM platforms allow IT teams to manage large numbers of endpoints remotely:
| Capability | Description |
|---|---|
| Patch Management | Deploy OS and application updates remotely |
| Software Deployment | Install/remove software across many devices |
| Monitoring | Track device health, performance, and alerts |
| Remote Access | Connect to any managed device for support |
| Scripting | Run scripts across multiple devices simultaneously |
| Reporting | Generate compliance, inventory, and health reports |
Common RMM Platforms: ConnectWise, Datto, NinjaRMM, Syncro, ManageEngine
Video Conferencing and Collaboration
Modern IT support includes managing collaboration tools:
| Tool | Features |
|---|---|
| Microsoft Teams | Chat, video calls, screen sharing, file sharing, integration with Microsoft 365 |
| Zoom | Video conferencing, screen sharing, recording, breakout rooms |
| Slack | Team messaging, channels, integrations, screen sharing |
| Google Meet | Video 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