Solved

Powershell rename Displayname of Usermailbox

Posted on 2013-07-01
4
5,928 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

726 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