← 返回
效率工具

Windows Remote

Control remote Windows machines via SSH. Use when executing commands on Windows, checking GPU status (nvidia-smi), running scripts, or managing remote Windows systems. Triggers on "run on Windows", "execute on remote", "check GPU", "nvidia-smi", "远程执行", "Windows 命令".
Control remote Windows machines via SSH. Use when executing commands on Windows, checking GPU status (nvidia-smi), running scripts, or managing remote Windows systems. Triggers on "run on Windows", "execute on remote", "check GPU", "nvidia-smi", "远程执行", "Windows 命令".
xiaoyaner0201
效率工具 clawhub v1.0.0 1 版本 99779.2 Key: 无需
★ 0
Stars
📥 3,164
下载
💾 121
安装
1
版本
#latest

概述

Windows Remote Control

Execute commands on remote Windows machines via SSH.

Configuration

Set environment variables in ~/.openclaw/openclaw.json under skills.windows-remote.env:

{
  "skills": {
    "windows-remote": {
      "env": {
        "WINDOWS_SSH_HOST": "192.168.1.100",
        "WINDOWS_SSH_PORT": "22",
        "WINDOWS_SSH_USER": "Administrator"
      }
    }
  }
}

Or export directly:

export WINDOWS_SSH_HOST="192.168.1.100"
export WINDOWS_SSH_PORT="22"
export WINDOWS_SSH_USER="Administrator"

Quick Commands

Check Connection

scripts/win-exec.sh "echo connected"

GPU Status

scripts/win-exec.sh "nvidia-smi"

Run PowerShell

scripts/win-exec.sh "powershell -Command 'Get-Process | Select-Object -First 10'"

Execute Script

scripts/win-exec.sh "python C:\\path\\to\\script.py"

Script Reference

win-exec.sh

Execute a single command on the remote Windows machine.

scripts/win-exec.sh "<command>"

win-gpu.sh

Quick GPU status check (nvidia-smi wrapper).

scripts/win-gpu.sh
scripts/win-gpu.sh --query  # Compact output

win-upload.sh

Upload files to the remote machine via SCP.

scripts/win-upload.sh <local-file> <remote-path>

win-download.sh

Download files from the remote machine.

scripts/win-download.sh <remote-path> <local-file>

Common Tasks

Check if Ollama is Running

scripts/win-exec.sh "tasklist | findstr ollama"

Start a Service

scripts/win-exec.sh "net start <service-name>"

Run Python with GPU

scripts/win-exec.sh "python -c \"import torch; print(torch.cuda.is_available())\""

Check Disk Space

scripts/win-exec.sh "wmic logicaldisk get size,freespace,caption"

Troubleshooting

IssueSolution
-----------------
Connection refusedCheck SSH service: Get-Service sshd
Permission deniedVerify SSH key in ~/.ssh/authorized_keys or administrators_authorized_keys
TimeoutCheck firewall rules, verify IP/port
Command not foundUse full path or check PATH on Windows

Security Notes

  • Use SSH keys instead of passwords
  • Keep private keys secure (chmod 600)
  • Consider using Tailscale for cross-network access

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 14:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,721
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,171
developer-tools

Cursor Council

xiaoyaner0201
多游标编排实现并行任务执行和AI议会审议。在需要并行运行多个游标代理、协调复杂多步编码任务、从不同AI模型(Opus/Sonnet/GPT)获取技术决策的多样观点,或将多智能体讨论综合为可执行建议时使用。
★ 0 📥 1,940