https://github.com/fuqunaga/headquarters
GUI tool for remotely operating multiple windows PCs using PowerShell
https://github.com/fuqunaga/headquarters
material-design operations powershell tool wpf
Last synced: 2 months ago
JSON representation
GUI tool for remotely operating multiple windows PCs using PowerShell
- Host: GitHub
- URL: https://github.com/fuqunaga/headquarters
- Owner: fuqunaga
- License: mit
- Created: 2018-11-30T10:56:31.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-14T08:05:36.000Z (3 months ago)
- Last Synced: 2025-03-27T03:04:44.941Z (3 months ago)
- Topics: material-design, operations, powershell, tool, wpf
- Language: C#
- Homepage:
- Size: 7.92 MB
- Stars: 13
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README-jp.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# HQ(Headquarters)
HQはPowerShellを用いて複数のPCをリモートで操作するためのGUIツールです
# クイックスタート
## 準備
### リモートPC
1. PowerShellを管理者として起動、以下のコマンドを実行```
Enable-PSRemoting
```
### ローカルPC
1. PowerShellを管理者として起動し、以下のコマンドを実行```
Set-Item WSMan:\localhost\Client\TrustedHosts -Value *
```## 実行
1. [Release](https://github.com/fuqunaga/Headquaters/releases)ページからHQをダウンロード
1. 解凍し、HQを起動(管理者権限が必要)
1. ローカルPCとリモートPCのユーザーが異なる場合はリモートPCのアカウント情報を入力
1. 右上の歯車マーク(⚙)をクリック
2. Settingsウィンドウが開くので、ユーザー名とパスワードを入力
2. Scriptsから使用するスクリプトを選んでクリック
3. スクリプトにパラメータが必要な場合は入力
4. IP List表に対象PCのIPを記入しチェック
5. 実行ボタン(▶)でスクリプトを実行
6. 画面下部の枠に出力が表示されます

# IP List
対象となるPCのIPアドレスと、対象ごとのパラメータを記したデータ
ここで選択したIPアドレスごとにスクリプトが実行されます
* IPは範囲指定できます([IPAddressRange](https://github.com/jsakamoto/ipaddressrange/))
* `192.168.10.10-20`
* `192.168.0.10 - 192.168.10.2`
* 右上の三点メニューからCSVファイルをインポート、エクスポートできます
* 一行目はパラメータ名になります# スクリプト
場所
```
.\HeadquartersData\Profile\Scripts\*.ps1
```* 上記場所にスクリプトファイルを置くことでユーザ独自のスクリプトを追加できます
* 詳しくは[wiki](https://github.com/fuqunaga/Headquarters/wiki/Script)を参照ください# パラメーター
HQに入力した値やタブの状態などは次のファイルに保存されます
```
.\HeadquartersData\Profile\setting.json
```# TIPS
### PCごとにアカウントが異なる
IP Listに`UserName`、`UserPassword`というパラメータを用意するとそちらが反映されます### ⚠セキュリティに注意
`UserPassword`を含め、入力した値はすべて平文で保存されるのでご注意ください### System.OutOfMemoryExceptionが出る
IP Listで複数のIPを指定している場合は同時実行するタスク数を制限することで回避できることがあります
実行ボタン(▶)横のメニューから設定できます# ライブラリ
* [MaterialDesignInXamlToolkit](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit)
* [Dragablz](https://dragablz.net/)
* [IPAddressRange](https://github.com/jsakamoto/ipaddressrange)
* [Json.NET](https://www.newtonsoft.com/json)
* [Costura.Fody](https://github.com/Fody/Costura)
* [Gu.Wpf.NumericInput](https://github.com/GuOrg/Gu.Wpf.NumericInput)
* [MinVer](https://github.com/adamralph/minver)
* [PowerShell Standard.Library](https://github.com/PowerShell/PowerShellStandard)