Skip to content

LapsTool 0.1.0-alpha

Choose a tag to compare

@InfraTechShelf InfraTechShelf released this 02 Nov 15:10
· 1 commit to main since this release

LapsTool 0.1.0-alpha を公開しました。

Active Directory の LAPS で管理されているローカル管理者パスワードを参照し、有効期限の変更と、参照したパスワードでのリモートデスクトップ接続までを1つの画面で行える Windows 用 GUI ツールです。ローカル管理者権限なしで動きます。


できること

  • パスワードの参照:コンピューター名で検索し(* でワイルドカード)、パスワードを取得します。表示は伏せ字が初期状態で、[表示]で平文に切り替わります。コピーしたパスワードは、一定時間(初期値30秒)が過ぎるとクリップボードから自動で消去します
  • Windows LAPS と旧 LAPS の両方に対応:どちらで管理されている端末かは自動で判定します。Windows LAPS(暗号化パスワードを含む)は Microsoft 公式の LAPS PowerShell モジュールで取得し、旧 Microsoft LAPS は ms-Mcs-AdmPwd 属性を読みます
  • 有効期限の変更:日時を指定して変更するか、今すぐ期限切れにできます。パスワードが実際に変わるのは、対象端末で次にポリシーが処理されたときです
  • リモートデスクトップ接続:パスワードを入力・貼り付けせずに接続できます。資格情報を「このログオン中のみ」有効な形で一時登録して mstsc に渡し、接続後(初期値20秒後)とツールの終了時に削除します
  • 接続に使うローカルアカウント名を設定可能:会社ごとに異なるアカウント名に合わせられます。Windows LAPS が記録しているアカウント名を優先することもできます
  • 会社ごとの初期値を配布可能:設定画面から LapsTool.defaults.xml を書き出し、exe と同じフォルダに置くと、全利用者の初期値になります
  • 操作ログ:誰が・いつ・どの端末を参照・変更したかを記録します。パスワードは記録しません

権限について

本ツールはサインインしているユーザーの権限で AD にアクセスします。誰がパスワードを参照・変更できるかは AD と LAPS の権限設定で決まり、本ツールがそれを迂回することはありません。必要な権限は README を参照してください。

パスワードの扱いの詳細は SECURITY.md にまとめています。

検証状況

項目 状況
旧 LAPS 環境での検索・参照・有効期限の変更・RDP 接続 確認済み
Windows LAPS 環境(暗号化・平文)での参照・有効期限の変更・RDP 接続 未検証

Windows LAPS 環境で試した結果(動いた・動かなかった)を Issues で教えていただけると助かります。検証手順は ZIP 内の 検証手順.md にあります。

ご利用にあたって

  • アルファ版です。 仕様が予告なく変わることがあり、不具合が含まれる可能性があります
  • Microsoft の非公式ツールです。 Microsoft とは関係がなく、Microsoft による承認・サポートもありません
  • 実行ファイルはコード署名していないため、初回の実行時に Windows SmartScreen の警告が出ることがあります。「詳細情報」→「実行」で起動できます
  • 動作要件:Windows 11、Windows 10(2023年4月以降の更新プログラム適用済み)、Windows Server 2019 以降。.NET Framework 4.8
  • LapsTool は Apache License 2.0 のオープンソースです

ダウンロード

LapsTool-0.1.0-alpha.zip(46,882 バイト)

SHA-256: 2fca3a9030121f087f58ad56ada3a56992eefa3aa943945e24fce76fcf1ee833
Get-FileHash -Algorithm SHA256 .\LapsTool-0.1.0-alpha.zip

ZIP 内の LapsTool.exe・LapsTool.exe.config・LapsTool.Core.dll を同じフォルダに置いて実行してください。


English

LapsTool 0.1.0-alpha is the first public release.

LapsTool is a small Windows GUI that looks up local administrator passwords managed by LAPS in Active
Directory, changes their expiration time, and opens a Remote Desktop session with the retrieved
password - all from one window, without local admin rights.

  • Windows LAPS (encrypted or clear-text, via Microsoft's LAPS PowerShell module) and legacy
    Microsoft LAPS
    (ms-Mcs-AdmPwd) are both supported and detected per computer
  • Remote Desktop without typing the password: the credential is stored for the current logon
    session only, handed to mstsc, and deleted after a short delay (20 seconds by default) and when the
    tool exits
  • The local account name used for connections is configurable, and organization-wide defaults can
    be shipped as LapsTool.defaults.xml next to the executable
  • Copied passwords are cleared from the clipboard automatically; an operation log records who viewed
    or changed what, never the password itself
  • All authorization is left to Active Directory. See SECURITY.md for how passwords are handled

Status: tested with legacy LAPS. Windows LAPS has not been tested yet - reports in Issues are
welcome. The UI and documentation are in Japanese.

Unofficial tool, not affiliated with Microsoft. Binaries are not code-signed.

SHA-256: 2fca3a9030121f087f58ad56ada3a56992eefa3aa943945e24fce76fcf1ee833