2
votes
1answer
46 views

How do I set “CustomAttribute6” for a regular AD user?

I'm trying to set AD attribute 6 in Powershell to update a user who has no mailbox, and isn't an exchange contact; and is only an AD user ObjectClass : user The command I'm using is: get-adobject ...
2
votes
1answer
73 views

How to setup a daily report of the top e-mail senders in Exchange 2010

We have had issues with compromised Exchange accounts sending a large amount of unsolicited e-mails out. We have mitigated this by using a cloud e-mail gateway that does a better job in detecting ...
2
votes
2answers
102 views

How do I combine two Powershell outputs so that command #2 is run on each output?

I want to combine the commands Get-user and get-casmailbox so that I can get the "Company" from the first output, and the "ActiveSyncStatus" in the latter into a single output. I also understand that ...
0
votes
1answer
52 views

Where can I get a list of KQL properties available in the Search-Mailbox -SearchQuery in exchange 2010?

Where can I get list of KQL properties available in the Search-Mailbox -SearchQuery Commandlet for Exchange 2010. A few I know of are subject:, body:, sentOn:, but I can't seem to find a ...
0
votes
1answer
97 views

KQL Query to specify date range for Mailbox search?

I'm trying to verify some phone numbers using our exchange server with the following query to send the results to my inbox: Get-Mailbox | Search-Mailbox -SearchQuery “Body: '*XXX-XXX-XXXX*' OR ...
3
votes
1answer
74 views

Configure Exchange to ignore requests for read receipts on certain mailbox

We have an Exchange (2010) mailbox that is automatically monitored by a windows service, this service connects to the mailbox periodically using Exchange Web Services 1.1 and imports the emails into ...
1
vote
1answer
62 views

How do I suppress “Yellow Text” from Exchange Set-Mailbox, when -WarningAction doesn't seem to work?

I am doing a bulk import, setting or updating attribute6 on 1,000 users in AD. I'm using the following Exchange commandlet to accomplish this: [PS] C:\>set-mailbox -Identity user@company.com ...
0
votes
0answers
109 views

Script to clean out old messages from Journal mailbox after exporting email to .PST

After using the following script to export email to a .PST file I'm wanting to clean out the Journal email box called "JournalMailbox": New-MailboxExportRequest JournalMailbox -FilePath ...
1
vote
1answer
60 views

Does Microsoft Exchange 2010 have two kinds of Distribution Groups?

I was told to add someone to a Distribution Group and when I ran: Get-DistributionGroup -ResultSize Unlimited | Select-Object -ExpandProperty Name from Exchange Management Shell I didn't the ...
0
votes
0answers
37 views

Exchange powershell command set-MailboxJunkEmailConfiguration not responding

I recently needed to remove an address from the blocked sender list on an exchange 2010 server. No biggie I thought and tried it out using this command: set-MailboxJunkEmailConfiguration -identity ...
0
votes
0answers
61 views

Exchange - setting folder policy with powershell

In Exchange Server 2010, there are known limitations for applying default retention policies to the Notes folder. The work-arounds I found indicate that users should manually set the retention policy ...
2
votes
2answers
128 views

Providing Read-only permissions to mailbox in Exchange 2010

I need to provide read access to a user in Exchange 2010. No matter how many different variances of the PowerShell I use I get a "Could not expand the folder" error in Outlook, and "Your mailbox ...
0
votes
0answers
46 views

mail routing connection testing

I would like to implement an alerting process that will send a test email to an internet based mail server every 5 minutes, I manually email echo@esat.net if I suspect there is a transmission issue ...
3
votes
2answers
548 views

Remove all recurring meetings scheduled by terminated user

I am looking for a way to efficiently and effectively remove all meetings that a terminated user may have created during their tenure. Currently, our group has to grant admin access to the user's ...
0
votes
1answer
173 views

How to export Exchange public folder permissions and import them to a different system?

I'm involved in a migration from Exchange 2010 to Office 365 (Exchange 2013); all user mailboxes have already been successfully migrated, but due to some glitch or bug that even Microsoft's support ...
0
votes
1answer
23 views

Read-only access to external mailbox exchange2010

I try set permission RO for external mailbox. I try do this with this solution http://exchangeshare.wordpress.com/2009/07/07/how-to-setup-read-only-mailbox-in-exchange-20032007 And doesn't work. I ...
0
votes
1answer
230 views

Exchange 2010 disable authentication to distribution groups by default

I know this is against best practices, but I have been unable to find a way to make this the default setting when creating new distribution groups on Exchange 2010. I know how to do it from EMS and ...
4
votes
2answers
384 views

How to remove the SMTP address for a secondary domain from all Exchange mailboxes?

I have an Exchange server which used to manage multiple SMTP domains; now it only has to manage one. I have already removed the secondary domain from all address policies; I need to remove all SMTP ...
0
votes
0answers
374 views

Retrieving Exchange 2010 Conference Room Calendar Statistics using PowerShell?

I need to gather statistics on the usage of our 7 conference rooms at my office (each of which is a Room resource mailbox in Exchange), and I'm hoping I can use PowerShell to do this. I am running ...
1
vote
1answer
136 views

How do I get Move Mailbox history?

The following command gives me partial detail on a mailbox move get-mailbox gstallard@nfp.com | Get-MailboxStatistics -IncludeMoveHistory | ft DisplayName, MoveHistory However I'm interested in ...
5
votes
1answer
913 views

Script to remove Exchange 2010 AutoMapping for all mailboxes

I have an Exchange 2010 SP3 server that's getting Application event error 9646 from MSExchangeIS: Mapi session [ID] [AD User] exceeded the maximum of 500 objects of type "objtFolder" Looking into ...
1
vote
1answer
540 views

Sending unauthenticated mail through MS Exchange with powershell (Windows Server 2008 R2)

I'm trying use Task Scheduler to run a powershell script and emails the output of a few commands. I'm using "Send-MailMessage" to do this. When I run the scheduled task with a domain admin account, I ...
1
vote
2answers
150 views

powershell script to create exchange report

I have some script write on PowerShell and I have some problem. When I run this script I have some error in output: You cannot call a method on a null-valued expression. At ...
2
votes
2answers
439 views

Exchange 2010 Powershell: Deleting a Mail Contact associated with a user

Good morning! I have a quick question. How would I delete the mail contact associated with a certain user? This is what I have tried: Get-Mailbox 'jsmith' | select ForwardingAddress | ...
0
votes
1answer
50 views

By default, does an Exchange user have the ability to Export the mailbox?

One of our contractors said that by default, it was possible for anyone to connect to the powershell instance of a CAS server and do an Export-mailbox (or similar command) Can anyone tell me if this ...
0
votes
1answer
440 views

Exchange 2010 powershell set ProhibitSendQuota equal to ProhibitSendReceiveQuota

I need to set the Exchange mailbox property ProhibitSendQuota equal as the ProhibitSendReceiveQuota, but my powershell fails as follows: Get-Mailbox -Identity 'name.surname' | Set-Mailbox $_ ...
2
votes
1answer
177 views

Cannot Create InboxRule on one individual mailbox

This one user when trying to create a rule through outlook throws the generic "One or more rules cannot be uploaded to Microsoft Exchange and have been deactivated. This could be because some of the ...
3
votes
1answer
83 views

Why are Exchange 2010 cmdlets ignoring ErrorVariable?

I'm trying to run Exchange 2010 cmdlets such as this one: Get-Mailbox UserName -ErrorVariable err However, the cmdlets seem to completely ignore the -ErrorVariable parameter: the variable $err is ...
0
votes
2answers
124 views

Exchange 2010 EMS - Total size of users mailboxes within a particular OU

I'm doing some massive DB cleanups at the moment. We have two DBs both approaching 400GB and I'm wanting to split the DB's into departments. To do that I need to know the total size of mailboxes ...
3
votes
1answer
442 views

Exchange's New-MailboxExportRequest behaves strangely with DateTime parameters to ContentFilter

I am attempting to extract a certain date-range of emails from a mailbox into a PST, but using a DateTime parameter for ContentFilter doesn't seem to work as expected. This should export everything ...
1
vote
1answer
374 views

Exchange Retention Policy cannot be run manually

I am trying to test an Exchange 2010 retention policy that deleted items in the deleted items after 365 days. Exchange is fully patched. When I run Start-ManagedFolderAssistant -Identity ...
1
vote
1answer
457 views

Exch2010 - Remove ActiveSyncAllowedDeviceIDs for devices with no activesyncdevice

I have users with multiple ActiveSyncAllowedDeviceIDs, who only have 1 ActiveSyncDevice partnership. Note the android-deviceid is a real phone and testdevicepleaseignore is a device that was removed ...
1
vote
2answers
2k views

How can I move Exchange items to a PST using PowerShell?

We have a mailbox that receives status emails that we need to keep essentially for ever, and they contain potentially large attachments. I need to be able to move these messages to a PST on a regular ...
0
votes
1answer
675 views

How do I set msExchMailboxGUID using powershell or any other method?

I need to set the msExchMailboxGUID for many accounts in bulk. My input for this data comes from the Powershell command Get-MailboxStatistics. In it is an object that has the GUID for the mailbox. ...
4
votes
1answer
507 views

How to get Mailbox Folder Permissions with SamAccountName or UPN?

I need to collect and store the folder permissions for each folder in each mailbox of our Exchange system. I'm already aware of the Cmdlet Get-MailboxFolderPermission but it has a serious problem. ...
1
vote
2answers
218 views

Can I install the Exchange Management Shell on a workstation in a different forest?

At work, we have two forests with a two-way transitive trust between them. I need access to the Exchange management shell for an Exchange environment that resides in a different forest than my ...
1
vote
1answer
298 views

How can I filter a Dynamic Distribution Group by Database name?

I need to create a dynamic DL to list the members of an individual database and I'm unable to get the powershell command to filter the results properly. [PS] C:\>New-DynamicDistributionGroup -Name ...
2
votes
1answer
585 views

Exchange: exporting and deleting items

How would I safely export data from Exchange 2010 mailboxes to PSTs using New-MailboxExportRequest and have the exported items deleted from the source mailbox? The Powershell cmdlet seems to be ...
2
votes
2answers
604 views

How do I “catch” a failed command that doesn't work with try…catch?

I'm running the following script that fails for a mailbox that doesn't exist Set-MailboxDatabase rdb16 -AllowFileRestore:$true Mount-Database rdb16 $stats = Get-MailboxStatistics -Database rdb16 ...
4
votes
1answer
694 views

Exchange 2010 Auto-mapping mailboxes feature doesn't work when groups grant permissions

I have a shared mailbox that I need to deploy to one of our departments in an Exchange 2010 SP2 environment with Outlook 2010 clients. I'm trying to rely on the auto-mapping feature introduced by ...
3
votes
2answers
1k views

How to get a list of emails older than 2 years in Exchange Database, sorted by user, using Powershell?

We are currently looking at archiving emails and revamping our retention policy. The big question is (for the legal department), how far back do we want to save? Currently our users have a huge ...
2
votes
1answer
965 views

How to take ownership of a security group as the Exchange administrator?

We are using Exchange 2010 as part of an Office 365 subscription. We have a security group owned by Alice only. Without using Alice's account, how can the administrator take ownership of that security ...
3
votes
1answer
195 views

Exchange - limit enrollment of ActiveSync devices

Is it possible to modify an ActiveSync policy to prevent a user from having more than one (or any specified number of) device(s) enrolled simultaneously? What would be the Powershell script to do so? ...
1
vote
2answers
2k views

Mailboxes moved and whitespace isn't increasing… aka logical mailbox space not being freed

I understand the difference between "logical" and "physical" free space and have a problem with whitespace not increasing (logical space, formerly event 1221 in Exchange 2003). Given that I have ...
0
votes
1answer
833 views

Uninstalling KB2506143 (WMF 3.0) from Windows 2008R2 with Exchange 2010 SP2 doesn't work

KB2506143 was installed on Exchange 2010 SP2 machine on Windows 2008 R2. Since WMF 3.0 was installed Rollup Updates cannot be installed as they fail on starting some PowerShell scripts. Normal ...
1
vote
2answers
427 views

Exchange 2010 - Mailbox Export much larger than actual size

I issue this command to export the mailbox of a user: New-MailboxExportRequest -Mailbox "user" -FilePath "\\server\share\user.pst" After 2 minutes or so, this file have been generated: Notice the ...
1
vote
1answer
177 views

powershell: Find all mailboxes on Server Foo whose owners are in AD group Bar

I am unsuccessful at attempting the following - maybe I have not correctly grasped the connection between AD users and Exchange mailboxes, also I often fail at seeing the simple ways for manipulation ...
0
votes
1answer
149 views

Powershell script runs on a Win7 client but not on an Exchange CAS server

I have created a small powershell script to disable active sync for mailboxes when the user is not a member of a specific AD group. This script works perfectly when running it from my Windows 7 ...
2
votes
1answer
2k views

Powershell script to delete secondary SMTP addresses of Exchange 2010 Mail Contacts

I have a few thousand Exchange 2010 Mail Contacts who get erroneously assigned internal SMTP addresses by the default recipient policy. I'm trying to use the following command to delete these ...
2
votes
2answers
537 views

Exchange PowerShell in a Scheduled Task runs forever

I have a couple of Exchange 2010 PowerShell scripts that I'd like to run as Scheduled Tasks. If I launch PowerShell using "Run as different user" I can run the scripts and they execute correctly. If ...