특정사용자들 정보 추출하는 경우 사용하는 반복문

<AD사용자 계정 생성 날짜>

 foreach ($userin (get-content d:\temp\userlist.txt)){Get-ADUser$user-Properties*|selectdisplayname,whencreated}

<이메일 사용자 계정 생성 날짜>

 foreach ( $user in (get-content d:\temp\mailboxlist.txt)){get-mailbox $mbx | select displayname ,primarysmtpaddress, whencreated | ft -AutoSize}