# Automating Server Management with Custom PowerShell Profiles

Streamline your workflow by running automated diagnostic scripts directly within your terminal session.

- **Source:** [XDA Developers](https://www.xda-developers.com)
- **Published:** 2026-11-07
- **Topic:** [technology](https://brifing.si/c/technology)
- **Original article:** <https://www.xda-developers.com/powershell-profile-runs-jobs-every-time-i-open-a-terminal/>
- **On Brifing:** https://brifing.si/s/e7d7c76a-35f9-41de-9a46-33f3bb054ad2

## Automating Terminal Workflows

Managing multiple home servers requires repetitive tasks like checking connectivity, system status, and application health. By configuring a PowerShell profile, users can automate these mundane checks to execute immediately upon launching the terminal. This approach saves significant time by eliminating the need to manually log into each remote server individually.

## Building the CLI Dashboard

The custom profile functions as a sophisticated CLI dashboard that aggregates statistics from local and remote systems. It displays host computer details, uptime, and internet connectivity status. By integrating these metrics into a single window, the user gains an instant overview of their entire infrastructure without switching between different management tools.

## Enabling Passwordless SSH Access

To facilitate seamless automation, the script utilizes SSH keys instead of traditional password authentication. By generating keys via Windows OpenSSH and adding them to the authorized_keys file on target devices, the script bypasses manual login prompts. This one-time setup is essential for running background commands without interrupting the terminal session flow.

## Monitoring Docker and Services

The dashboard provides deep insights into server health, including Docker container status, system temperature, and active bind mounts. It identifies inactive services and reports on available updates, allowing for proactive maintenance. For instance, the script detects if a specific container like Kopia is disabled, providing immediate visibility into current system configurations.

## Network and Error Reporting

Beyond individual server metrics, the script monitors Tailscale device activity across the network. It performs DNS resolution checks and reports recent system errors to ensure comprehensive oversight. If a container configuration is unhealthy, the dashboard highlights the specific issue and suggests relevant commands to help the user resolve the problem quickly.

## Custom Aliases for Efficiency

The profile replaces long, complex SSH commands with short, custom aliases like ssh113 or ssh110. These shortcuts enable instant connections to specific target devices, further reducing the effort required for server management. By skipping standard aliases in favor of functional commands, the script streamlines access to various remote environments within the terminal.

## Dashboard vs. Terminal Control

While web-based dashboards like Homarr or Glances offer visual monitoring, they often lack granular control over the host operating system. The custom PowerShell profile provides superior flexibility by allowing direct interaction with the server. Unlike web tools that may fail if the server is unresponsive, this script remains functional and informative.

## Future Development and Scalability

The current implementation effectively manages Linux servers, but the author plans to expand support to include WSL machines on secondary Windows PCs. Future iterations will focus on cosmetic improvements to the CLI dashboard layout. This automation strategy demonstrates how personalized scripting can significantly enhance productivity for power users managing complex home networks.

## Sources covering this story

- https://www.xda-developers.com/powershell-profile-runs-jobs-every-time-i-open-a-terminal/ — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
