0
votes
1answer
59 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
88 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
1answer
68 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 ...
0
votes
0answers
74 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 ...
3
votes
1answer
53 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
75 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 ...
0
votes
0answers
103 views

Exchange 2010 interminent errors with connections

Recently we've upgraded our Exchange 2010 from SP2 RU5 to RU6 and shortly afterwards to SP3. We have 2 x CAS + HUB and 2x MBX servers. Since about that time (I am not entirely sure if that's because ...
4
votes
1answer
208 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 ...
2
votes
2answers
140 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 ...
1
vote
1answer
115 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
115 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
427 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
396 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
160 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
114 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
108 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
805 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
258 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 ...
0
votes
0answers
62 views

Getting individual CSV files for all mail-objects in a specific OU

I want to have a CSV file for all users in a specific Organizational Unit and have that for all OU's witin the domain /forest Will the following work and/or where would I improve and/or change the ...
2
votes
2answers
2k views

Receive total send and received emails Exchange 2010

We are using Exchange 2010. I would like to retrieve a list of total sent emails and received emails from all users in the work place for 30 days. The list should have all the users' names, then total ...
1
vote
2answers
425 views

Exchange 2010 PST-Export fails

I'm horribly failing at exporting Exchnange Mailboxes to PST files. Perhaps You are able to help me? The System I'm running some legacy machines here. The one I'm currently working on (CurrentDC) is ...
0
votes
1answer
283 views

New-MoveRequest - How to assign -TargetDatabase dynamically

I am in progress to migrate (approximately) 5000 mail-objects and I need a way /script /command that will allow me to utilize the New-MoveRequest CMD-Let in combination with the possibility to ...
3
votes
1answer
451 views

Piping Objects From Format-Table to Export-CSV Has Unexpected Results

I'm running this command to get a list of all Activesync users and export them to C:\activesync.csv Get-ActiveSyncDevice | Get-ActiveSyncDeviceStatistics | sort-object status, devicetype , ...
5
votes
2answers
341 views

Exchange 2010 Powershell commands?

I was wondering if anyone knows the PowerShell command for Exchange 2010 that lists mailboxes and/or users that a particular mailbox does NOT have access to. We have a system account that we need to ...
1
vote
1answer
397 views

Exchange 2010 hub transport configuration –InternalSMTPServers

I did the following configuration in powershell on my hub transport server for anti-spam settings. Set-TransportConfig –InternalSMTPServers 10.0.0.1,10.0.0.2 Initially, when i did a ...
0
votes
1answer
110 views

Exchange 2010: disable some functions for users via powershell

I am setting up a environment, where not all users should have access to all functions. Basically, I want some users to only have these functions: Personal mail folders Personal Contacts Personal ...
0
votes
0answers
74 views

Registering Exchange PSSnap-in

I'd like to manage exchange 2010 from my local workstation via powershell. When I run powershell as my normal user account, I can do get-pssnapin -registered add-pssnapin ...
1
vote
1answer
127 views

Exchange 2010 Cmdlets for Sent Items in a Distribution group

Here is the scenario that I am in and am stuck on how to get this the correct way. What I'm looking for is a syntax that will provide me with statistics on what users have emailed "Sent" for the day. ...
1
vote
1answer
45 views

Is it possible to open an Active Director or Exchange Management Console user dialog directly from Powershell?

I'd like to be able to launch either the AD user dialog, or the EMC mailbox dialog directly from a Powershell script to open a specific user. The workflow goes something to the effect of "Does ...
2
votes
1answer
524 views

Exchange 2010 powershell - select custom attributes

How do I select the custom attribute from the Exchange powershell command get-mailboxstatistics? I would have expected to use something along the lines of get-mailboxstatistics -server dbserver | ...
3
votes
1answer
100 views

How do I pull counts of email sent to a specific smtp address

I was asked to see if I could pull statistics on the volumne of email, and specifically the size of attachments sent from within my organization to a particular email address. I work a lot with ...
1
vote
1answer
124 views

OutVariable is broken for Exchange 2010 cmdlets

It seems that OutVariable is broken when using the Exchange 2010 cmdlets. Is it just my server or is this the case for everyone? I observed the following -- get-mailbox jdoe -OutVariable asdf | ...
1
vote
2answers
610 views

Proper Use of -OutVariable in PowerShell

I'm trying to make use of the Common Parameter OutVariable in a simple one-liner PowerShell command, but it's not working the way I think it should (or really at all). Get-Mailbox -OutVariable mBoxes ...
1
vote
1answer
2k views

Powershell: Wanting Exchange statistics and running into (output) limitations

I am trying to gather mailbox statistics for all mailboxes in our organization, exporting it to an Excel /CSV file. This is the code I came up with /gathered so far: Get-Mailbox -ResultSize Unlimited ...
1
vote
1answer
315 views

Powershell: undelete messages removed by recipient policy

A specific recipient policy was mistakenly applied to all mailboxes in our company. I have changed the recipient policy to the correct one. I now need to restore (from delete items) all messages that ...
1
vote
1answer
572 views

PowerShell with module vs Exchange Management Shell

We are working on Exchange through Exchange Management Shell and also PowerShell (snap-in Exchange 2010 added). My point here is that we have two different series of answers. EMS and PowerShell have ...
1
vote
1answer
373 views

Powershell Exchange script returning inconsistent results - PS weirdness

Maybe someone can shed some light on a bit of Powershell weirdness I've come across and can't explain. This PS script returns a list of exchange databases, their sizes and the number of mailboxes in ...
6
votes
4answers
1k views

PowerShell Remoting w/ Exchange 2010: Value cannot be null

I'm having difficulty running Exchange 2010 cmdlets through remote PowerShell sessions. I start my local PowerShell session as Administrator and issue the following commands -- PS ...
4
votes
1answer
101 views

How can I reference the output of the first command when chaining Powershell commands

How can I extract one value from the first of a command chain in my output? For example: Get-ActiveSyncDevice | Get-ActiveSyncDeviceStatistics | ft UserDeviceAgent, Identity -a The column ...
1
vote
1answer
812 views

what is the meaning of the parameter -mailboxcredential?

I am writing regarding the Exchange powershell commands. When I want to use following cmdlets, I have to insert parameter -mailboxcredential Test-OwaConnectivity Test-OutlookWebServices ...
0
votes
2answers
2k views

Getting users from dynamic distribution group Exchange 2007/2010

I've found article at Microsoft claiming that this powershell query would give me a list of users in a dynamic distribution group that is defined more or less like this: The code to list: ...
0
votes
3answers
796 views

How can I add a custom Powershell CMDLET to Exchange 2010?

I remember reading about how it's possible to add scripts or commandlets to Exchange 2010... in a way that as soon as Powershell imports the remote commands, your custom command is available as well. ...
1
vote
0answers
198 views

“Get-OwaVirtualDirectory” very very slow when accessing CAS in different site

I have a CAS server in a different AD site, and every Exchange 2010 command runs quickly... except for the one that use IIS and Get-XXXVirtualDirectory. In these cases it takes several minutes for ...
3
votes
2answers
535 views

Updating a phone number in the Exchange GAL using Powershell

How do I use powershell to update the Exchange GAL with "Business Phone" and Location? I don't see them in "get-mailbox"
2
votes
3answers
3k views

Exchange 2010 Powershell command to check if an email address exists in the system

I'm looking for an Exchange 2010 command that would do the following: Given an email address (fully-qualified with domain and all) check if the email address is associated to some mailbox or group ...
2
votes
2answers
1k views

Powershell script to find outlook duplicates

We are migrating users from Notes to Exchange 2010 using BinaryTree, some how we accidentally migrated ...
0
votes
1answer
117 views

Exchange Server 2010 SP1: Powershell scripting

How can I get a list of users that got the checkbox unchecked for advanced security "Allow inheritable permissions..." on the Exchange Server 2010 ? How can I enable it bulk using AD PowerShell?
1
vote
1answer
237 views

Cannot change default OU for new Distribution Groups in Exchange 2010

I'm trying to use the following command to set the default OU for new distribution groups in Exchange 2010: Set-OrganizationConfig -DistributioNGroupDefaultOU 'corp.company.com/Employees/MailingList' ...
1
vote
1answer
283 views

How to show disabled/enabled status in Exchange 2010 EMS

I'm using this little script to show me the size of mailbox, usage, lastlogontime of all users mailboxes. Get-MailboxDatabase "MDB01" | Get-MailboxStatistics | Sort totalitemsize -desc | ft ...
5
votes
1answer
485 views

How to find out users without SEND AS SELF flag in Exchange 2010

I'm looking for a way to find all users who don't have SEND AS SELF flag set in Exchange 2010. Without that flag users aren't able to send emails thru SMTP and it seems some users are missing this ...

1 2