header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Properties not in QADUsers
Last Post 01 Sep 2008 02:43 PM by SynJunkie. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
SynJunkieUser is Offline
New Member
New Member
Posts:87

--
01 Sep 2008 10:30 AM  

Hi

Whilst trying to locate stale AD accounts I have been using the following one-liner.

get-qaduser * -sizelimit 0 | select -property name,accountexpires,pass*,accountisdisabled,lastlog*,canonicalname

 

This gives me most of the info that I want but i do have users that never log into an account, but the accounts are required just for mail forwarding. So now I'm trying to extract all users from AD with that certian property also.  The property I really need is the altrecipient property.  This property is not included in Get-QADUser even if I force Powershell to look at a DC which is an exchange server (i'm using Exchange 2003 by the way).

Does anyone have any ideas how i might include this field along with the others I listed above?

Kind Regards

Lee

ShayUser is Offline
Basic Member
Basic Member
Posts:228

--
01 Sep 2008 02:22 PM  

The altRecipient property is not included in the default set of properties retrived by get-qaduser. You can add it using the -IncludedProperties parameter:

get-qaduser -sizelimit 0 -IncludedProperties altRecipient | ft name,altRecipient,accountexpires,pass*,accountisdisabled,lastlog*,canonicalname
SynJunkieUser is Offline
New Member
New Member
Posts:87

--
01 Sep 2008 02:43 PM  
Thats great.

Thanks Shay
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer