Solved

Powershell rename Displayname of Usermailbox

Posted on 2013-07-01
4
4,674 Views
Last Modified: 2013-07-07
hi,

how can i rename the displayname of a usermailbox in one line?

Get-Mailbox -DisplayName U/C, LIS 516.207 ROOM | Set-mailbox -DisplayName UD/G, LIS 516.207 ROOM						

Open in new window


this code above not working
0
Comment
Question by:Mandy_
4 Comments
 
LVL 26

Assisted Solution

by:ronnypot
ronnypot earned 75 total points
ID: 39289459
This should work:

Get-Mailbox -Filter {DisplayName -like "U/C, LIS 516.207 ROOM"} | Set-mailbox -DisplayName "UD/G, LIS 516.207 ROOM"
0
 
LVL 42

Accepted Solution

by:
sedgwick earned 75 total points
ID: 39289463
Get-Mailbox | where {$_.DisplayName -eq "U/C, LIS 516.207 ROOM"} | Set-mailbox -DisplayName "UD/G, LIS 516.207 ROOM"

Open in new window

0

Featured Post

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Find out what you should include to make the best professional email signature for your organization.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now