Solved

Powershell rename Displayname of Usermailbox

Posted on 2013-07-01
4
4,394 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

Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this video we show how to create a mailbox database 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 Servers >> Data…

705 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

16 Experts available now in Live!

Get 1:1 Help Now