a command line interface and scripting platform for Microsoft Exchange Server. It is a fully featured version of Windows PowerShell with Exchange-specific extensions, first introduced with Exchange Server 2007 and included in all later versions.
Questions tagged [exchange-management-shell]
48 questions
0
votes
1 answer
How to get notification of exchange email queue
i want to get the notification of full details of get-queue when my exchange queue reaches maximum message count , here is what i have now which give you the details but not in correct format.
function check_queue
{
$a = get-queue | measure-object…

karhtik
- 506
- 3
- 15
0
votes
2 answers
How do you screen for legacy or linked mailboxes?
I've noticed when I pull up exchange management console, it shows mailboxes which have the "Recipient Type Details" as Legacy Mailboxes.
How do I go about querying which ones are legacy, user or linked mailboxes?
I've tried
get-mailbox -identity…

phill
- 13,434
- 38
- 105
- 141
0
votes
0 answers
Start PsSession on windows load in hta
I have a 500+ lines vb script. It is being used by HR to set some AD attributes. Now I need to use Set-UserPhoto cmdlet of Exchange Powershell Management tools. I don't want to rewrite all script in powershell. On script startup, I want to call…

Алдар
- 175
- 8
0
votes
2 answers
Using invoke-command scriptblock with exchange management shell
I've written some scripts to automate some user add and user modifications functions. But there is one last piece to the puzzle I can't figure out.
I need to run some commands in exchange management shell on the exchange server from a local…

Eric Ellenwood
- 11
- 2
- 5
0
votes
2 answers
How to get a list of all the Shared Mailboxes that a user have access to Exchange2010 | Exchange Management Shell or PowerShell?
Get-Mailbox | Get-MailboxPermission -user
Get-Mailbox | Get-MailboxPermission -user | Where {$_.AccessRights -like "sendas*"}
Get-Mailbox | Get-ADPermission | Where {$_.extendedRights -like "send-as"}
All of the above commands does not work for…

Pragnesh Panchal
- 15
- 1
- 2
- 7
0
votes
0 answers
Powershell/Exchange Management Console
I am attempting to, due to a user request, change the ExternalDsnMaxMessageAttachSize attribute from the exchange management shell. When I run the following command:
set-transportconfig -ExternalDsnMaxMessageAttachSize 20 MB
It works perfectly.…

gonavy96
- 81
- 1
- 6
0
votes
2 answers
List all mailboxes a user has access to in Exchange 2013?
Is it possible to run a command to produce a list of mailboxes a user has full access to?
I found something to try running in PS AD module however the output was useless.
Get-ADUser mspencer -Properties * | Select msExchDelegateListBL |…

Donna Smith
- 1
- 1
- 1
- 1
0
votes
1 answer
Exchange Management Shell strip output
Exchange 2010, I am using the following in the exchange management shell
$mailidentities = Get-Mailbox | Get-MailboxPermission | where {$_.identity.tostring() -like "* STAFF/*" -and $_.identity.tostring() -NotLike "*Ex_Staff*" -and…

Ricardo
- 105
- 1
- 11
0
votes
1 answer
Clear mailboxes using Exchange Management Shell based on AD Logon Name (SAMAccountName?)
I have a CSV containing 150 - 200 AD logon names (SAMAccountNames?) and I need to loop through each user and clear their mailboxes.
I can do that using this command
Search-Mailbox -Identity "" -DeleteContent…

user6888062
- 353
- 1
- 3
- 16
0
votes
3 answers
Extract users from AD group and add them to Mailbox
I want to make a powershell script to extract an AD group and add the members to a specific mailbox. In that group is a group that i dont want to extract (doNotExtract). That is what i have so far:
Import-Module ActiveDirectory
$csv =…

Gaterde
- 779
- 1
- 7
- 25
0
votes
1 answer
Remove full access permissions of all disabled users on shared mailboxes with exchange management shell
I’m looking for a powershell exchange script to remove Full access permissions of all disabled users on all shared mailboxes in a specific OU.
This is what I got so far
Remove-MailboxPermission -Identity Sharedmailbox -AccessRights Fullaccess…

Stefko
- 1
- 1
- 2
0
votes
1 answer
Using CSV files as input to run exchange management shell commands
I have a csv that looks like this:
csv
Column A is the account alias, B is the OU, c is firstname, D is lastname and so on. I want to run the New-Mailbox -Alias firstlast -Name FirstLast -OrganizationalUnit domain/OU -FirstName firstname -LastName…

JewM4gic
- 1
0
votes
1 answer
connecting exchange server EMS from powershell remoting via HTTPS
I'm trying to resolve an issue we are facing.
we are able to communicate to Exchange Server EMS Script from remote machine through winRM HTTP authentication.
$newSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri…

Rahul Nair
- 9
- 6
0
votes
0 answers
Powershell convert to SecureString
This is what I'm working on
$First = Read-Host "Enter First Name"
$Last = Read-Host "Enter Last Name"
$FirstIntitial = $First.Substring(0,1)
$LastInitial = $Last.Substring(0,1)
$FirstLastInitial =…

user71317
- 101
- 2
- 3
0
votes
1 answer
-SearchQuery not deleting all items
According to my powershell code shown, it should delete all items between 90 days ago and yesterday. For example if I ran this now the date range would be 1/29/2014 - 4/28/2014.
$x = ((get-date).addDays(-90)).ToShortDateString()
$y =…

Johnrad
- 2,637
- 18
- 58
- 98