header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Modifying additional or etentded attributes of AD
Last Post 26 Jan 2010 06:17 AM by James. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
JamesUser is Offline
Basic Member
Basic Member
Posts:398
Avatar

--
22 Jan 2010 07:06 AM

    Hello,

    I have the following:

    Set-QADUser -Identity $Name -ObjectAttributes @{TargetAddress=$TargetAddress}

    Which will set the target address based on a variable defined above in $TargetAddress and $Name.

    This will write the target address fine however I want to be able to pull out the target addresses which have a space in them and export it to a csv file. I can do an export like the below:



    Get-QADUser -Title "student" -SizeLimit 0 |Where-Object {$_.TargetAddress -match "\s" -and $_.ProxyAddresses -match "\s" -and $_.cn -match "\s"}
    Select-Object Title,FirstName,LastName,cn,SamAccountName,TargetAddress,ProxyAddresses,ParentContainer |
    Export-Csv "c:\StudentSpaces.csv"



    It seems to run through fine but produces nothing although I know there are alot of them there.

    Does anyone know why?

    Many Thanks

    James

    JamesUser is Offline
    Basic Member
    Basic Member
    Posts:398
    Avatar

    --
    25 Jan 2010 04:48 AM
    Does anyone know why this is happening?

    Many Thanks

    James
    Vishal RamnaniUser is Offline
    New Member
    New Member
    Posts:68
    Avatar

    --
    25 Jan 2010 04:54 AM
    How about if you add "-includeAllProperties" in Get-QADUser here?

    Get-QADUser -Title "student" -SizeLimit 0 -IncludeAllProperties | WHere....

    Thanks.
    Vishal Ramnani
    MCITP - Exchange 2007, MCSE Messaging, MCTS - Win 2008 Config
    JamesUser is Offline
    Basic Member
    Basic Member
    Posts:398
    Avatar

    --
    26 Jan 2010 06:17 AM
    Hello,

    Thats worked perfectly.

    Many Thanks for your assistance

    James
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer