[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Powershell rename Displayname of Usermailbox

Posted on 2013-07-01
4
Medium Priority
?
6,992 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_
2 Comments
 
LVL 26

Assisted Solution

by:ronnypot
ronnypot earned 300 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:
Meir Rivkin earned 300 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

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

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

This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
To show how to generate a certificate request 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 >> Certificates…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

834 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