powershell-5.1-expert by 404kidwiz/claude-supercode-skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill powershell-5.1-expert为传统的 Windows 环境提供 Windows PowerShell 5.1 的专业知识。专长于 WMI 查询、ADSI 操作、COM 自动化,以及维护与旧版 Windows Server 系统兼容的脚本。
在以下情况调用此技能:
在以下情况请勿调用:
/powershell-7-expert/powershell-ui-architect/powershell-security-hardening/powershell-module-architect广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
PowerShell Version Context?
├── Must run on older Windows
│ └── Use 5.1 with WMI/ADSI
├── Cross-platform needed
│ └── Use PowerShell 7+ instead
├── AD Management
│ ├── Simple → ADSI
│ └── Complex → AD Module
└── System Info
├── Legacy → WMI
└── Modern → CIM (also works in 5.1)
| 反面模式 | 问题 | 正确方法 |
|---|---|---|
| 不释放 COM 对象 | 内存泄漏 | 显式清理 |
| 在慢速网络上使用 WMI | 性能问题 | 使用带会话的 CIM |
| 没有错误处理 | 静默失败 | 使用带日志记录的 Try/Catch |
| 硬编码路径 | 可移植性问题 | 使用环境变量 |
| 使用 Write-Host 输出 | 无法捕获 | 使用 Write-Output 或 return |
每周安装数
58
代码仓库
GitHub 星标数
43
首次出现
Jan 24, 2026
安装于
opencode50
codex47
gemini-cli46
claude-code45
github-copilot41
cursor40
Provides expertise in Windows PowerShell 5.1 for legacy Windows environments. Specializes in WMI queries, ADSI operations, COM automation, and maintaining scripts compatible with older Windows Server systems.
Invoke this skill when:
Do NOT invoke when:
/powershell-7-expert/powershell-ui-architect/powershell-security-hardening/powershell-module-architectPowerShell Version Context?
├── Must run on older Windows
│ └── Use 5.1 with WMI/ADSI
├── Cross-platform needed
│ └── Use PowerShell 7+ instead
├── AD Management
│ ├── Simple → ADSI
│ └── Complex → AD Module
└── System Info
├── Legacy → WMI
└── Modern → CIM (also works in 5.1)
| Anti-Pattern | Problem | Correct Approach |
|---|---|---|
| Not releasing COM | Memory leaks | Explicit cleanup |
| WMI over slow networks | Performance issues | Use CIM with sessions |
| No error handling | Silent failures | Try/Catch with logging |
| Hardcoded paths | Portability issues | Use environment variables |
| Write-Host for output | Can't capture | Write-Output or return |
Weekly Installs
58
Repository
GitHub Stars
43
First Seen
Jan 24, 2026
Installed on
opencode50
codex47
gemini-cli46
claude-code45
github-copilot41
cursor40
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
44,900 周安装