+ Post New Thread
Results 1 to 5 of 5
Windows Thread, Live@edu is quality, but... in Technical; Can anyone help me with some powershell stuff. Basically, have set up the online mail server and imported users into ...
  1. #1

    Join Date
    Feb 2009
    Location
    South Wales
    Posts
    41
    Thank Post
    9
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Live@edu is quality, but...

    Can anyone help me with some powershell stuff. Basically, have set up the online mail server and imported users into it with a CSV file. I put a column in there called "CurrentAttribute1" which split the users into Staff/pupil/admin etc, and now I want to set up a group based on these attributes. Trouble is, it only lets me do it from powershell cmdlets. I can't even find the get cmdlet to return the full list of imported attributes, let alone start to build a group with them. Anyone got any ideas? Sorry if this is posted in the wrong forum, btw!

  2. #2

    Join Date
    Dec 2008
    Location
    Essex
    Posts
    2,144
    Thank Post
    1
    Thanked 326 Times in 316 Posts
    Rep Power
    77
    Hi

    How did you import the users? Powershell?

    What group do you want to setup? DL? SG? and do you want to assign this group a custom attriubute?

    Sukh

  3. #3

    Join Date
    Feb 2009
    Location
    South Wales
    Posts
    41
    Thank Post
    9
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Imported them using the import function on the system portal. I assigned each user a custom attribute denoting staff/pupil/admin/etc, and want to set up a distribution list based on these attributes, so I really want a script which will assign all users to a certain DL based on this switch, so to speak. Does that make sense?
    Cheers for the quick response, btw!

  4. #4

    Join Date
    Dec 2008
    Location
    Essex
    Posts
    2,144
    Thank Post
    1
    Thanked 326 Times in 316 Posts
    Rep Power
    77
    So how many distribution lists do you want to set-up?

    See below for powershell to create group

    New-DistributionGroup: Exchange 2007 Help

    Then set custom attribute on each group.

    Also see.

    Powershell « Live@edu

    Sukh

  5. #5


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,893
    Thank Post
    226
    Thanked 2,673 Times in 1,971 Posts
    Rep Power
    786
    Either of these should do it...

    Code:
    New-DynamicDistributionGroup -Name "All Staff" -IncludedRecipients MailboxUsers -ConditionalCustomAttribute1 Staff
    Code:
    New-DynamicDistributionGroup -Name "All Staff" -RecipientFilter { (RecipientType -eq 'UserMailbox') -and (CustomAttribute1 -eq 'Staff') }
    e.g.

    Code:
    $LiveCred = Get-Credential
    
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
    
    Import-PSSession $Session
    
    New-DynamicDistributionGroup -Name "All Staff" -RecipientFilter { (RecipientType -eq 'UserMailbox') -and (CustomAttribute1 -eq 'Staff') }
    
    Remove-PSSession $Session
    Links
    http://help.outlook.com/en-us/140/dd264649.aspx
    http://help.outlook.com/en-us/140/dd264647.aspx

SHARE:
+ Post New Thread

Similar Threads

  1. Live@Edu and Online MSN Messenger problem due to Live.com domain.
    By adhutton in forum Internet Related/Filtering/Firewall
    Replies: 7
    Last Post: 6th May 2011, 12:32 PM
  2. Need a cheap and quality printer
    By devendrakardam in forum Hardware
    Replies: 5
    Last Post: 20th May 2010, 12:55 PM
  3. Quality Maintenance Work
    By SimpleSi in forum General Chat
    Replies: 0
    Last Post: 2nd April 2008, 10:50 PM
  4. Quality of this years conference
    By alonebfg in forum BETT 2014
    Replies: 7
    Last Post: 14th January 2007, 04:45 PM
  5. Sheer quality HTML
    By Norphy in forum Web Development
    Replies: 11
    Last Post: 2nd March 2006, 03:16 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •