2014-11-15から1日間の記事一覧

PowerShellで現在のユーザやグループなどのID情報を取得する方法

PowerShellでIdentity関連情報を取得する方法です。 ユーザ情報を取得する まず、ユーザ情報のオブジェクトを取得します。 [System.Security.Principal.WindowsIdentity]::GetCurrent() WindowsIdentityオブジェクトが返ってきます。 WindowsIdentity クラス…