Small Business Server の Active Directory を PowerShell で操作する ~ 有効期限切れアカウント検索

 
今までは、以下の 11つを紹介しました。
 
 
今度は、無効になっているすべてのユーザー、コンピューター、およびサービス アカウントを取得してみましょう。これらのアカウントは次のコマンドで取得できます。
 
  PS AD:\> Search-ADAccount -AccountExpired | Format-Table -Property Name,ObjectClass -Auto
 
応用として、 有効期限が 6 日後に切れるすべてのユーザー、コンピューター、およびサービス アカウントを取得する場合のコマンドは次のとおりです。
 
  PS AD:\> Search-ADAccount -AccountExpiring -TimeSpan 6.00:00:00 | Format-Table -Property Name,ObjectClass -Auto
 

 

コメントを残す

Windows Server Essentials を中心とした雑記

中小企業で初めてサーバーを導入しようと思っている担当者向けにWindows Server Essentials や Small Business Server に関する情報を提供するブログです。

My Knowlage Base

ggrksといわれる前に。

Dj Saori's Hardstyle Life

Dj Saori in the Mix

exceedone (エクシード・ワン)

Just another WordPress.com site

WoodStreamのCtrl+Alt+Delete

WindowsやWindowsPhoneのお話をします。