Convert String and set as displayname for mailbox in bulk

Hi All,
Need a favor to convert the existing displaynames to right format and then set the displayname for bulk mailboxes.
Current Displayname - "Ranji Rock MBA\DBA\RISK\FIN"
I need a script to convert the above text to "Ranji Rock MbaDbaRiskFin" and set it as displayname. Could someone help me to remove those slashs in the text and adding the first letter in caps??
Never giveup till you get what to want.

This should work, or give you a direction to head to, but please test it on a test OU first!!!
$users = Get-ADUser -SearchBase "OU=Users,OU=To,OU=Path,DC=Here,DC=Company,DC=your" -Filter * | select sAMAccountName, Name, Displayname, 
ForEach ($User in Users){
$ExistingDisplayName = $User.Displayname
$Newdisplayname = $ExistingDisplayName -replace "\\","" #Need the \\ as \ is an escape Charactor
Set-ADUser -Identity $User.sAMAccountName -Displayname $Newdisplayname
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. If you find an answer helpful
then please "Vote As Helpful"
Adam - the OP is looking to rename the displayname of mailboxes, not the AD accounts.
Don't retire TechNet! -
(Don't give up yet - 13,225+ strong and growing)

Similar Messages

  • How can i set my old ipod touch up to be used by someone else ie wipe all my details etc off and set it up for new user

    Hi i need help i have got a second hand ipod touch generation 4 how can i delete all of the previous owners stuff and set it up for myself to use for facetime etc

    Just restore it. When it gets to the point that asks you if you want to restore from back up or set up as new, select new.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • Insert multiple images in one slide and setting dsiplay time for each

    Hi,
    I am using Adobe Captivate4.
    I could not able to insert multiple images in one slide and set display time for each image.
    Need help in this regard.

    This is not about background image.
    I have 3 images and want to insert in one slide only. I could able to insert image1 for first time, but could not able to insert image2 and image3.
    I have followed the same steps: Insert Menu>Image.

  • Formula for comparing string and setting text object to visable?

    I have a report that is pulling data from a database and listing multiple records, one on each page. I am wanting to compare a value that is stored in a database field for each record and setting a text object visible based on the text.
    I'm very new to Crystal Reports and not quite sure on the type of syntax needed to perform what I'd like below and can't find much information online about it. The type of formula I want would be something like:
    if (vDetailReport.BoardAction = "Board Action w/Committee Action")
        txtBox1.Visible = True;
    else if (vDetailReport.BoardAction = "Board Action w/o Committee Action")
        txtBox2.Visible = True;
    else if (vDetailReport.BoardAction = "Committee Discussion Only")
        txtBo3.Visible = True;
    etc.
    The txtBoxes are text objects with an "X" as the string that are inside the boxes to appear as a checkbox. I'm wanting this to work for every record in the report.
    Example:
    http://img.photobucket.com/albums/v57/kaje103/boardaction.png
    Any help would be much appreciated!

    I believe that what you want to do here is place an text item consisting of an "X" at each location you want. Then select "Format Text", go to the Common Tab, and click on the button next to "Suppress". That allows you to put in a formula such as:
    {vDetailReport.BoardAction} <> "Board Action w/Committee Action"
    that will suppress the X unless it's the value you want checked.

  • Convert DVD and other video files for playback on  iPhone, iPod, PSP, etc.

    So, how are your holidays going? Or, if you're reading this on the weekend, how'd they go? Watching various sorts of DVD movies and videos is a better idea for a pastime during your free time. To make your holiday be more colorful with movies, I prefer to recommend an application to help you guys deal with different kinds of video resources, no matter the DVD files or footages shot by camcorders, or videos in formats of FLV, AVI, MKV, etc., in a word, the converted videos will be supported by whatever portable devices you have, including PSP, iPod Classic, iPod Touch, iPod Nano, iPhone (3G), iPhone, Zune, Zune 2, Blackberry, Nokia, Creative Zen, Sony Walkman, iRiver PMP, Archos, PS3, Apple TV, Xbox, iPAQ, Pocket PC, Mobile Phone, etc. The software is Pavtube Video DVD Converter Ultimate, which combines DVD ripper and Video Converter together, and enables you to edit and convert any DVD, video, audio and image files to other popular formats including MP4, 3GP, FLV, MPEG-4, AVI, MPG, MOV, 3G2, VOB, FLAC, MKA, OGG, WAV, AC3, M4A with super fast conversion speed and excellent image and sound quality.
    The detailed user guide will be shown in the following part:
    Step 1: Add video and DVD file
    You are allowed to add videos to this program via clicking "Add Video", and add DVD files to it via clicking "Load DVD". DVD files can be loaded in three ways: "Load DVD ROM", "Load DVD Folder", and "Load ISO/IFO".
    Step 2: Select output format and set destination folder
    Videos and DVD files can be added to this program at the same time, after that, you can click the drop-down list of "Format" to select an output format for your portable devices. The format profile provides you with formats for iPod, iPhone, PSP, PS3, BlackBerry, etc. Meanwhile, you can click the folder icon at the end of "Output" to decide where to save the output files. Moreover, if you want to combine multiple files to be a single file, you can tick "Merge into one file".
    Step 3: Set advanced settings
    If you have the needs of adjusting video and audio parameters to make good control of the output file quality and size, you can click "Settings" button to do it, and all the options like codec, aspect ratio, bit rate, frame rate, audio channel, etc. are changeable on the following window.
    Step 4: Start conversion
    As soon as the above steps are finished, you can click "Convert" button to start conversion, the following ripping window will show you clearly about all the conversion info. After finished, you are able to find out the output files via clicking "Open" button.

    We're not supposed to talk about DVD conversion according to the terms of service ...
    So I'll assume these VOB files are from your HOME MOVIE DVDs you burned yourself and suggest the Videora iPod Classic Video Converter.
    http://www.videora.com/
    It's a really nice program that converts not only your HOME MOVIE DVD VOB files, but AVI, MPEG, and others. You can set the CPU usage from high to low with five settings, it has a queue which you can add multiple files to, and it will minimize to the taskbar for compact convenience. There are other Windows programs that do much the same, but I prefer Videora. Oh ... and it's freeware!!

  • Problems with installing coldfusion mx and setting up CF for home practice

    problems with installing coldfusion mx:
    hello,
    i have some books of cf.
    i need to start on my tutorials
    however,
    they said the prereq is mx server
    home site,
    1. i did download mx 7 and chose mx developer edition.
    my problem is that when it is self configure. (the second
    option without apache or iis)
    it is reall taking a long time to configure 2hrs. i did not
    let it finish so i stopped the process.
    what am i doing wrong in the set up process.
    2. do i need apache to run CF. if so i did go to apache .org
    and went to a mirror site. but i dont know which one to down load.
    any tips?
    3. can i run my tutorials with out apcahe or IIS?
    4 . the book also mentioned homesite / dreamweaver as a
    editor.
    where and how can i put this in my personal PC?
    i really appreciate your help in advance
    i am really eager to learn so i can develop for my work, i
    figure if i get a head start at home, i wont have to rely on
    others.
    thanks if someone can help me set up CF at home.

    i got a copy from a disc today and i installed it.
    i think this one is good.
    i also have apcahe 2.0 together in a cd.
    i need a walk through on both
    mx 7 and apache 2.0 for installing and configure.
    can you help me?

  • How to read and set Pane value for new adding folder

    Hi Experts,
    I tried to add a new folder in to a system form as below
    Itm = form.Items.Add("UserFolder"), SAPbouiCOM.BoFormItemTypes.it_FOLDER)
    form.DataSources.UserDataSources.Add("F_new", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
    Dim oFolder As SAPbouiCOM.Folder
    oFolder.DataBind.SetBound(True, "", "F_new")
    oFolder.GroupWith("138")
    My quester is what is the panelevel for this new folder? And how to set value to panelevel for this folder.
    If we design a folder from Screen Painter, we can set the pane value manually, can we do this from code?
    Thanks a lot
    Tim

    Hello,
    You do not have to set any panelevel for your folder, if you would like to display it all the panelevels. (Let's see an example on Item Master data form).
    Sales, Purchase, Inventory etc tabs (folders) are always visible, there is no panelevel set for them.
    To change between panelevels, you can trigger et item pressed event, and  before_action = false, then you may change the panelevel of the form poperly.
    For initially you may use the Folder.Select() command to show the default panelevel
    >The problem is here, it looks like oFrom.Panelevel property can only accept integer value, so how can I know what's the pane level number for my folder?
    Do not set panelevel for your folders, you should drive your form's panelevel based on a selection tree:
    To see clear, please check the following code in the help sample: CompexForm
    C:Program FilesSAPMásolat - SAP Business One SDKSamplesCOM UIVB.NET07.ComplexForm2003
    to make it clear:
            '// Adding Folder items
            For i = 1 To 2
                oItem = oForm.Items.Add("Folder" & i, SAPbouiCOM.BoFormItemTypes.it_FOLDER)
                oItem.Left = (i - 1) * 100
                oItem.Width = 100
                oItem.Top = 6
                oItem.Height = 19
                oFolder = oItem.Specific
                '// set the caption
                oFolder.Caption = "Folder" & i
                oFolder.DataBind.SetBound(True, "", "FolderDS")
                If i = 1 Then
                    oFolder.Select()
                Else
                    oFolder.GroupWith(("Folder" & i - 1))
                End If
            Next i
    This code add 2 folders to the form: and the first (i = 1) is selected.
    IN itemevent, the panelevel property of the form is depending from the item you have clicked:
    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                        '// Check if the event was raised by one of the Folder items
                        '// and change the form's pane level
                        If pVal.ItemUID = "Folder1" Then
                            oForm.PaneLevel = 1
                        End If
                        If pVal.ItemUID = "Folder2" Then
                            oForm.PaneLevel = 2
                        End If
    Regards
    János

  • Could someone please help me, I bought my daughter an iphone 4s for my daughters birthday yesterday and set it up for her so she could use it straight away, now we share emails, facetime and when i download an app she gets it too,

    Could someone please help me, I bought my daughter an iphone 4s for her birthday yesterday and I set it up for her so she could use it straight away, now we share emails, facetime and when i download an app she gets it too, very annoying for us both.

    you can use the same apple id for purchasing apps and music if you want, but turn off automatic downloads. it may be better to have separate ones, but if you want the same app you'd have to pay twice. that's something you'll have to think about. for all the other stuff like facetime and messages and icloud you need to have separate icloud id's. see the apple link below.
    http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US

  • My daughter's Itouch is on the same acct as my stuff.  i am wanting to seperate her music and stuff out from mine and set u one for her.  How do I do this?

    I want to seperate my daughters stuff on itunes from mine and set her up her own acct.  How do I do this?

    If she has a different account, she won't be able to share Apps, Music and Books.
    It's easier to create a playlist with her music and sync that.

  • How to hide PNP selection windows and set default values for PNP.

    Hi expert,
         I am using HR logical database PNP, but I don't want to display selection windoes for running program on PNP, whereas I want to set default value for some selection items in the program. could you please tell me how to get those two targets?
    Many Thanks,

    Hi
    You have mentioned 2 things.
    1. Don't want selection windows for running program for PNP - this can be achieved using the HR Report category - You can get more details on HR Report Category on
    HR Report Category
    2.  I want to set default value for some selection items - This you need to achieve in initialization event of your program.
    How you can get this can be explained by INITIALIZATION (SAP Library - ABAP Programming (BC-ABA))
    Thanks,
    Sreeram

  • Attach a custom content type and set as default for picture library using client object model

    Hi,
    How to associate custom content type to a picture libraray and set it as default using the client object model?
    Thanks

    Hello,
    Here you go:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b1de0697-0006-4f89-8909-1b94aa18ad89/how-to-reorder-content-types-in-list-with-client-context
    http://www.niteenbadgujar.com/2013/05/change-default-content-type.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to set initial size for mailbox in Exchange 2013?

    Hello All!
    I've installed Exchange 2013.
    Now I'd like to check Backup/Restore of some DataBase.
    For thist I look for some way to create Bulk of Mailboxes in DataBase and to set some initial size 50-100Mb for each.
    Thanks a lot!
    BR,
    Pavel

    Hi 
    In your testing creating bulk mailboxes alone will not help . We need to populate some data's in the databases so that the databases are written with some values and they contain some data.
    For your testing with backup
    First you need to create few number of mailboxes.
    Populate those mailboxes by sending more emails.
    delete those emails and then try restoring those emails from the backup or if its testing QA server then you can dismount any databases delete few log files and try to restore them from your backup
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • How does Java Handle String Literals Setting to Null for Identical Values ?

    Suppose,
    String s1="Java";
    String s2="Java";
    Now if i am not wrong only one value(bit pattern) "Java" exists in the heap and both s1 and s2 are pointing to it.
    If i set s1 to null,
    s1=null;
    Won't s2 be affected (it is not getting affected actually..)
    What could be the cause for this ?
    Thanks in Advance.

    amtidumpti wrote:
    So is it something like ....
    Variable         Memory Address   Value
    s1                      0234234           "Java"
    s2                      0234235           "Java"
    is s1 is set to null :
    Variable         Memory Address   Value
    s1                      0234234           null
    s2                      0234235           "Java"
    No. In your model here, a variable's value is a String object. It's as if your entire house exists on my s1 paper, and an exact duplicate house with all the same contents exists on my s2 paper. In Java, no variable or expression ever holds an object. No value is ever an object.
    It's more like this:
    Variable         Memory Address         Value
    s1                      0234234           11223344
    s2                      0234235           11223344
    is s1 is set to null :
    Variable         Memory Address         Value
    s1                      0234234           null
    s2                      0234235           11223344and 11223344 is, roughly speaking, the "address" where the String object holding "Java" is stored.
    And in both your model and mine, "Memory Address" is not the address that the variable holds. Rather, it is the address that corresponds to what we humans have named s1 and s2 for our convenience.
    Edited by: jverd on Apr 10, 2009 11:43 AM

  • HT1430 Hi just bought i pad air and set up wifi for home and uploaded contacts to i cloud from my i phone can receive mail but cant send it says server rejected recipient /

    HI just bought new i pad air set up email and wi fi and uploaded contacts to i cloud contacts now available but will only receive mail wont send to recognised contacts says server rejected contact

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • How to launch Web administration service and set trace level for web dispac

    Experts,
    Can some one help on how to setup trace level for Web dispatcher? and how to launch web administration interface.
    Thanks in advance.

    Hi Sam,
    You can launch the Web Dispatcher Interface through the follwing link:
    http://host:port/sap/wdisp/admin
    The Username & Password are created when the profile is run for the first time. The userid is ICMADM
    This link points to the web disaptcher administration interface & its usage.
    You can set the trace level once you login to the interface.
    http://help.sap.com/saphelp_nw70/helpdata/en/4f/3bee29d9764e988bdeecdb4d484722/frameset.htm
    Hope it is helpful.
    Regards,
    Abhishek

Maybe you are looking for