/\/\o\/\/ PowerShelled

This blog has moved to http://ThePowerShellGuy.com Greetings /\/\o\/\/
$AtomFeed = ("Atom.xml")
$PreviousItems = (" PowerShell : Active Directory Part 10 (AD Browser)... "," PowerShell "," PowerShell : How Do I randomize a list, and remove... "," PowerShell : Can you do that less cryptic ? "," PowerShell : How can I tell whitch numbers are mis... "," PowerShell Active Directory Browser teaser "," Powershell, Has my Dell a dangerous battery Part 2... "," PowerShell, Has my Dell a dangerous battery ? "," PowerShell Adding -verbose switch to functions "," PowerShell and Active Directory Part 9 (nested gro... "," ")

Wednesday, September 06, 2006

 


PowerShell : Setting SendAs permission in Exchange 2003 (AD)



On the "You had me at EHLO" Exchange Team blog, you can find this excelent Post with PowerShell Examples for E12.

 Exchange Server 2007 recipient management one-liners

But not all is lost if you still Have Exchange 2003 as much of the tasks listed here, you can also do in Active Directory directly.

I will show here also how you can do this directly in AD using PowerShell, for as you have an Exchange 2003 environment and you need to do this, and so you can see the difference with and without the Exchange 2007 Cmdlet, 

I select the mailbox from AD with the PowerShell Active Directory Browser from Last post in the AD series PowerShell : Active Directory Part 10 (AD Browser)  , ofcourse there are other ways to get at the mailbox as you could see in that series: 

# Grant "Send-As" permission E12

Add-ADPermission testmbx -ExtendedRights Send-As -user jaredz

# Using AD Browser to get to mailbox

$mailbox = Browse-ActiveDirectory
$AccountName = 'Mow'

# Grant "Send-As" Permission Exchange 2003 (ActiveDirectory)

$acl = new-object System.DirectoryServices.ActiveDirectoryAccessRule ([Security.Principal.NTAccount]$AccountName,'ExtendedRight','Allow','ab721a54-1e2f-11d0-9819-00aa0040529b'
$Mailbox.get_ObjectSecurity().AddAccessRule($acl)
$mailbox.CommitChanges() 

 For some more info about setting Active Directory  ACL's and ExtendedRights see also PowerShell and Active Directory Part 8 (ACL's) , or do a Search for the GUID : 'ab721a54-1e2f-11d0-9819-00aa0040529b'  in Google for more info about SendAs and Exchange 2003 (SP1 + ).

Enjoy,

greetings /\/\o\/\/
Tags : Monad msh PowerShell




Comments:
Anonymous Jakke
Would this be possible for Public folders also?
 
Blogger /\/\o\/\/
I think so but have no Ex2003

gr /\/\o\/\/
 
Post a Comment

Links to this post:

Create a Link



<< Home

Archives

October 2005   November 2005   December 2005   January 2006   February 2006   March 2006   April 2006   May 2006   June 2006   July 2006   August 2006   September 2006   October 2006   November 2006   December 2006  

$Links = ("PowerShell RC1 Docs"," PowerShell RC1 X86"," PowerShell RC1 X64"," Monad GettingStarted guide"," Monad Progamming Guide"," Monad SDK"," Monad videos on Channel 9"," MSH Community Workspace"," scripts.readify.net "," MonadSource"," www.reskit.net"," PowerShell Blog"," Under The Stairs"," computerperformance powershell Home"," proudlyserving"," MSH on wikipedia"," MSHWiki Channel 9"," Keith Hill's Blog"," Precision Computing"," PowerShell for fun"," MSH Memo (Japanese)"," monadblog")

find-blog -about "PowerShell","Monad" | out-Technorati.
find-blog -contains "","" | out-Technorati.
Google
 
Web mow001.blogspot.com

This page is powered by Blogger. Isn't yours?