?
Solved

Send as checkbox check with all users security tab

Posted on 2011-02-14
2
Medium Priority
?
500 Views
Last Modified: 2012-05-11
Hi.

Send as checkbox check with all users security tab

i need to check all users in an OU and sub ou's where users have the send as selected with who the user it is selected and extracted to a txt file

regards
sharath
0
Comment
Question by:bsharath
2 Comments
 
LVL 8

Accepted Solution

by:
jwarnken earned 2000 total points
ID: 34893272
Try this
function Get-OU
{
$search = [System.DirectoryServices.DirectorySearcher]([adsi]“”)
$search.Filter = “(objectClass=organizationalUnit)”
$ounames = $search.Findall()
return $ounames
}
 $AllMailboxes = @()
 foreach ($ou in Get-OU)
 {
  $AllMailboxes += Get-Mailbox -OrganizationalUnit $ou.Properties.distinguishedname[0]`
-ResultSize Unlimited | Get-ADPermission | where { ($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”) } | Select Identity, User, Deny
 $AllMailboxes |Export-Csv c:\test.csv -NoTypeInformation

Open in new window

0
 
LVL 11

Author Comment

by:bsharath
ID: 34960606
Thanks
Where can i mention the OU path
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses
Course of the Month17 days, 13 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question