posimai-root/tools/pc-audit/README-PORTABLE.md

34 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Posimai PC Auditポータブル
Windows PC 向けの読み取り専用監査ツールです。Node.js やリポジトリのクローンは不要ですPowerShell 5.1 が標準搭載の環境を想定)。
## 含まれるファイル
| ファイル | 説明 |
|----------|------|
| `Invoke-PcAudit.ps1` | 監査本体 |
| `report-viewer.html` | 生成 JSON をブラウザで確認するビューア |
| `Run-Portable.bat` | 通常モードで実行し、終了後にビューアを開く |
| `Run-Portable-Share.bat` | 共有向け(機微を抑えた)レポートで同様に実行 |
## 手順
1. ZIP を任意のフォルダに展開する(例: `C:\Tools\PosimaiPcAudit`)。
2. `Run-Portable.bat` または `Run-Portable-Share.bat` をダブルクリックする。
3. 同じフォルダに `out` が作成され、`latest.json` などが出力される。
4. 開いた `report-viewer.html``out\latest.json` を選択する。
## スキャン対象について
ポータブル配置時は、プロジェクト用のファイル走査の既定ルートが **ユーザープロファイル**`%USERPROFILE%`になります。リポジトリ直下を走査したい場合は、PowerShell から次のように指定できます。
```powershell
cd C:\展開先
powershell -NoProfile -ExecutionPolicy Bypass -File .\Invoke-PcAudit.ps1 -ProjectRoot "D:\your\repo\root"
```
## 注意
- 管理者権限なしでも多くの情報は取得できますが、一部項目は権限により空になることがあります。
- 本 ZIP は PWA ではなく、ローカルで動かすオフライン寄りのツールです。