Update name, surname from display name - script needed

Hello
I'm moved from Postfix to Office365. My users has only display name field filled. This is a problem when we try to find an user, because only way is to find it when You will put name in search field.
I decided to build a script that will first check if the user has "Name" is filled if not then we need to take  display name. Divide it (take first word into name and rest into
surname). Next update users name and surname.
I try to make such script but my skills are not enought to do it, so I ask You for help. I know that this is a piece of cake for You ;)
Regards
SLawek

Hi,
Prewritten scripts can be found in the repository here:
https://gallery.technet.microsoft.com/scriptcenter
If you don't find what you need and you can't write your own, you can request a script here:
https://gallery.technet.microsoft.com/scriptcenter/site/requests
Let us know if you have any specific questions.
Good luck.
Don't retire TechNet! -
(Don't give up yet - 13,225+ strong and growing)

Similar Messages

  • HT3576 My updates has dissappeared from my settings I need to upgrade to iso5 or 6 or 7

    Updates has disappeared from my settings not able to upgrade to iso5/6/7

    Update it from iTunes on a computer as described at the bottom of this article; devices running an iOS version prior to 5.0 can't be updated straight from the device. It will be updated to the newest iOS release supported by the device’s hardware.
    (92717)

  • I cant update my OSX from Tiger to Leopard, Need Help!

    Hello and good afternoon guys. I'm on the brink of killing my Mac PPC. Here are my specs before i start to blabber:
    G5 2.7ghz Duo PPC with 2gb Ram currently running 10.4.11 OSX
    I had leopard 10.5.8 installed before but i downgraded to Tiger to fix some problem with my corrupt OS now when i try to upgrade to my 10.5.2 Leopard DVD after setup it gives me a "This software OSX cannot be installed on this computer" error.

    Hi SaintPrado, and welcome to the forums!
    At this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    http://www.macupdate.com/info.php/id/15667
    After installing, Reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    At least if it doesn't fix it, it'll eliminate a few questions.
    Also, Get Temperature Monitor - 4.51 to see if it's heat related...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19994
    "This software OSX cannot be installed on this computer" error.
    What color is the Disc, Gray ones are Machine Specific... what are the 2z-***-***+A numbers on it?

  • Update to Mavericks from lion

    On my lion OS, i have VMware fusion, MSoffice etc all setup.
    As you all know that Mavericks is available for free download. If I update the OS from lion, Do  I need to install those softwares again.
    Or
    Just the OS will be updated without effecting the apps and softwares installed like the upgrades in iphones/ipads

    Mavericks is a free download only for beta testers, not the general public.
    When it is announced formally that it is available to all (may be today, may not be today), the upgrade paths will be explicit.  It will also be a paid upgrade, not free.
    So the news came out just minutes ago that it will be free - check the website in a little while for updates on system requirements to upgrade.
    And yes, as long as you have the minimum pre-existing OS X version, an upgrade (like any upgrade) should only update the operating system and not touch 3rd party apps or user documents.

  • HT4972 I am trying to update ipod touch from ios 4.3.2 to ios 6.1.3.  I have it connected to my computer, and the summary in itunes indicates the update is available.  However, when I click "update", it opens Windows Explorer and waits for a file name to

    I am trying to update ipod touch from ios 4.3.2 to ios 6.1.3.  I have it connected to my computer, and the summary in itunes indicates the update is available.  However, when I click "update", it opens Windows Explorer and waits for a file name to open.

    I am not at that computer now, but I did check via windows update & with the check updates menu choice in the itunes program  - neither indicated a newer version of itunes is available. (it is a vista computer).
    The itunes software on the computer displays my ipod & the current ios (4.3.2), and indicates a newer ios is available (6.1.3). When I choose "update", I am taken to Windows Exploer and prompted to choose a file to open. it is as if the "update" button has the incorrect code attached to it.
    The ipod is working, but there are several app I would like to install, but I can't with the current ooperating system.

  • Office 365 Error: We're sorry, but (program name) has run into an error that is preventing it from working correctly. (Program name) will need to be closed as a result.

    Today we had this error code on starting Office programs out of the blue. We've had this error in the past and we know what caused it, but that action wasn't taken. I've already read other posts, but no "Answer" provides a real solution to a clear
    problem with Office 365.
    The error: "We're sorry, but (program name) has run into an error that is preventing it from working correctly. (Program name) will need to be closed as a result."
    It offers "Repair Now", then the two following options: "Online" or "Offline". Neither are effective.
    In the past we used the Office 365 Fix It tool, but uninstalling and reinstalling Office on a regular basis is unacceptable. Resorting to web apps is also not going to happen.
    Running Win 7 Pro 64 bit, fully updated.
    We're starting to get fed up with this broken software. Paying monthly for programs that don't work is ridiculous. Any real answers would be greatly appreciated!

    Locate your Office application and check the setting of Compatibility.
    For example,
    Right click on Excel (.exe) > Properties > Compatibility > uncheck all the boxes, click Ok and check if it helps.
    To access Excel (.exe), open the following location:
    C:\Program Files\Microsoft Office\Office15\Excel.exe
    Or
    C:\Program Files\Microsoft Office 15\Root\Office15\Excel.exe
    Try to open Excel and check if it opens.
    http://social.technet.microsoft.com/Forums/en-US/590617de-629f-413b-8c11-f3cc79e27e7a/excel-2013-error-on-open-were-sorry-but-excel-has-run-into-an-error-that-is-preventing-it-from?forum=officeitpro
    Thanks.
    Tony Chen
    TechNet Community Support

  • When I sign into iTunes for updates, a secondary username appears and I need to enter a password. I am not familiar with the second user name. Any Suggestions?

    When I sign into iTunes for updates, a secondary username appers and I need to enter a password. I am not familiar with the second username. Any suggestions?

    Are you using iTunes on your iPad or the actual program on a Mac/PC?
    If you are using on your iPad check the ID being used by going to Settings>iTunes & App Store if the Apple ID displayed isn't yours tap it and select Sign Out then sign in with your own Apple ID.
    If you are referring to iTunes on a Mac/PC select the Store Menu and check the Account Name next to the View Account text, if this isn't you select the Sign Out option directly above it then Sign In with the relevant credentials.
    Regards,
    Steve

  • Can I disable the LCD screen from displaying the Network Name or Password of my device?

    Can I disable the LCD screen from displaying the Network Name or Password of my device?  I feel that having this information readily available to any who can turn on my device is a security flaw.
    I have change the network name and password and would like to secure that information .

    Worked with VZW tech support and finally found where you can disable or mask  the display of the network name and password on the Jetpack LCD screen.  You need to access the admin screen of your jetpack (http://my.jetpack/) .  From there, navigate to Jetpack Settings --> Click on Wifi tab -- Click on the Wi-Fi Options link halfway down the page and it will show the two settings that control the display of network name and password.
    As they say, a picture is worth a thousand words...here are screen shots showing how to get to these settings. ...
    The LCD display will show ********* for the network name and password if the two checkboxes above are unchecked. I really think these settings should be disabled to be begin with.
    Oh well...posting here to share with those interested...

  • HT2305 Since updating my laptop from Windows Vista to Windows 7, my Ipod Shuffle, 3rd generation does not recognize last 3 playlist names; it calls them out as "playlist 3, playlist 4 -- even though in the panel the names are showing just fine. The music

    I have recently updated my laptop from Windows Vista to Windows 7. I have just added three new playlists to my Ipod Shuffle, 3rd generation. On the panel in ITunes in view on the computer, all looks fine and music plays. However, after syncing a million times, when clicking to "hear" the playlists, the voice will call out all the old playlists just fine - except for the 3 new ones I've added; it calls them out as "playlist 3, playlist 8, or "purchased". All software for the ITunes has been updated as of the moment. Why would switching from Vista to Windows 7 cause this frustrating issue? All help appreciated.

    From page 23 of your iPod's User Guide: http://manuals.info.apple.com/en_US/iPod_shuffle_3rdGen_UG.pdf
    If VoiceOver is disabled in iTunes, you hear an abbreviated menu of playlists in numbered order, but not by name (for example, “Playlist 1, Playlist 2,” and so on).
    So you'll want to make sure VoiceOver is enabled to correct this.
    B-rock

  • Need help with updating Name Server update for home webserver

    I set up a webserver at home to run my own domain/website. I am able to type my IP address into Safari/IE and get to my website fine. I now need to update the NameServer with the previous domain hosting service, but I have no idea how to find out the NameServer (Compast is my ISP) to put into the UPDATE NAME SERVERS form for the previous hosting company. I need to obviosly do this before people who type in my web address can be directed to my home server instead of the old hsoting company. The previous hosting server is ns.teammediaonline and ns1.teammediaonline.com. Do I use something like ns.comcast.net or something? I already have the IP address and know it works fine. Comcast does notchange the IP's too often and I will not have much traffic to my site, so I should not have any issues with them. I am sure this is a very simple issue. Any help would be greatly appreciated.

    Hi--
    You definitely do not want to contact Comcast. Servers are forbidden to their residential customers. If you contacted them, not only would they refuse to help, that might put you on a list to watch in case you do set one up. Now, if you're careful, don't server out a lot of traffic, and aren't a general nuisance to the people on your node, they most likely won't notice if you don't contact them.
    However, you'll need to look into a different DNS solution. Do a search for "Dynamic DNS" and you'll find a number of services that will be able to help you out. This one, DynDNS, has some reading material that might help to explain what you need to do...
    charlie

  • How to alter 'add to file names' script?

    I'm working on some stuff that I need to get done today, and it dawned on me that I could save a lot of time if I had a certain script perform a simple task for me. Unfortunately I haven't been able to get one to work right. I just want to be able to add the same thing onto the end of a file name... For instance, 01.jpg would become 01x.jpg, 02.jpg becomes 02x.jpg and so on. The basic 'Add to File Names' script will almost work, but it adds to the front of the name, not the back. Does anyone know how I could alter the lines in that script to get it to do what I want?
    Thanks for any help,
    Dave

    01. Under 'Alternative 01:', the line ...
    No error checking for folders is included. Such is an exercise for the student.
    ... should have been ...
    --No error checking for folders is included. Such is an exercise for the student.
    02. The error message ...
    "System Events got an Error: NSCannotCreateScriptCommandError".
    Hmmm, those replying are using MacOS X 10.4.x, and you are using MacOS X 10.2.x. Others, with Macs running MacOS X 10.2.x and using AppleScript code from MacOS X 10.3.x and later, do at times experience 'NSCannotCreateScriptCommandError' error messages.
    In the code below, 'System Events' was replaced with 'Finder'. Some additional editing was performed, where required.
    Alternative 01:
    property tAddition : "x" -- The charcter or string to append to the files' name.
    tell application "Finder"
    set tSelection to selection
    --No error checking for folders is included. Such is an exercise for the student.
    repeat with i in tSelection -- Cycle through the provided files.
    set {displayed_name, name_Extension} to {displayed name of (i as alias), name extension of (i as alias)}
    if ((displayed_name ends with name_Extension) and ((count name_Extension) > 0)) then
    -- Handle file names which include a name extension.
    set (name of i) to ((get (characters 1 through ((count displayed_name) - (count name_Extension) - 1) of displayed_name) as string) & tAddition & "." & name_Extension)
    else
    set (name of i) to (displayed_name & tAddition) -- Handle file names without a name extension.
    end if
    end repeat
    end tell
    Save the AppleScript code as a script.
    Move file (or a copy or alias of the file) to the '~/Library/Scripts/' folder.
    Select files to be processed, in 'Finder'.
    Select the script, via the 'Script menu'.
    Alternative 02:
    property tAddition : "x" -- The charcter or string to append to the files' name.
    on run {} -- User double-click on the applet.
    display dialog "Drag file(s) onto applet for processing."
    end run
    on open selected_Items -- User dragged items onto applet.
    my handleitems(selectedItems) -- Processed items dragged onto applet.
    end open
    on handleitems(localItems)
    -- No error checking for folders is included. Such is an exercise for the student.
    tell application "Finder"
    repeat with i in local_Items -- Cycle through the provided files.
    set {displayed_name, name_Extension} to {displayed name of i, name extension of i}
    if ((displayed_name ends with name_Extension) and ((count name_Extension) > 0)) then
    -- Handle file names which include a name extension.
    set (name of i) to ((get (characters 1 through ((count displayed_name) - (count name_Extension) - 1) of displayed_name) as string) & tAddition & "." & name_Extension)
    else
    set (name of i) to (displayed_name & tAddition) -- Handle file names without a name extension.
    end if
    end repeat
    end tell
    end handle_items
    Save the AppleScript code as an applet (application).
    Drag files to be processed, onto the applet, in 'Finder'.

  • Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to.

    Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to. 
    I'm NOT in any way a Terminal Services expert and I need help trying to get an application program working in a multi-user environment.
    The issue is that the printer changes for every user that is logged in. The application needs to print NOT to the default printer, but to a "special" printer which is selected in the application... let's call it a label printer to simplify the explanation.
    You have your default regular printer, easy for the application to find that one, and then you have a special printer that labels get printed onto. The application needs to know what printer is the label printer. So we allow the user to select that in the
    application and the selection is stored in a config file in 
    C:\ProgramData\mfgr\prog\setting files
    I don't have access to the application so I can't change how this works.  
    In the "regular" world, selecting the label printer driver to use should be per machine, NOT per user. When a new user logs into a machine, the physical printer doesn't go "poof" and a new printer suddenly appear. Same printer for all
    users.
    Yet in terminal services, the physical machine is "merged" with the virtual machine on the server. And there can be many users logged in at the same time. So each users real machine (and real printer) is injected into the "fake" terminal
    services machine. The name of the printers is made unique for each user. So the printers DO go "poof" and change names depending on the user logged into terminal services.
    So user "A" logs in and sets up the application to print to "LabelPrinterForUserA" (or whatever the name of the printer happens to be), that setting is stored in the ProgramData subfolder, and all is well. Later, user "B" logs
    in, and when they print, the application tries to print to "LabelPrinterForUserA" which doesn't exist for user B or is only accessible by user A. If user B re-configures, that breaks it for user A. 
    SOLUTION 1: The way that /should/ work (in my mind) is that you define one "generic" printer in Terminal Services... call it "Virtual Label printer" and when the user wants to print to it, the print job gets re-directed back to whatever
    physical printer is actually connected to their local workstation. There is a map of virtual printer to actual printer depending on the current user. The application is told once to print to "Virtual Label Printer" for all users.
    SOLUTION 2: Or... there should be some way to make the ProgramData sub folders separate per user. E.g. when user "A" tries to access:
    C:\ProgramData\mfgr\prog\setting files
    they actually get 
    C:\UserData\UserA\AppData\mfgr\prog\setting files
    and user "B" gets
    C:\UserData\UserB\AppData\mfgr\prog\setting files
    So the question I have is: Does either of those solutions exist hidden somewhere in the setup of terminal server? Or is there another way around this issue that I don't know?

    I don't really have a "for sure" answer to this, but because people here can't seem to deal with a question that hasn't been answered I'll provide the best answer I did receive from ServerFault.com user Nathan:
    I can feel your pain with using old software on terminal servers ...the solution I've come up with definitely won't scale as it requires some manual configuration, but I've gotten this method to work with our label printers (which require to be
    printed to an LPT port...yep, that old).
    Share your USB-connected printers to the network on each machine. Then, have the user log in on aunique session for each of them
    (a TS account cannot be shared among computers for this to work) and install a network printer pointing to the USB one they shared. Try to use a DNS name to account for possible DHCP movements.
    After, it should work. Each user can do this since display names can be identical as long as the ports are different (which they are).
    This was clarified by the following series of comments:
    I think you are on to something here, and I originally advised the admin to do this. The problem he ran into is that it setup the printer names in the TS as "printer on usersworkstation"
    and he could not rename it except to change the "printer" to whatever. E.g. the "on userworkstation" remained. I believe there is another way of installing the printer which avoids this, but I can't find it. Ages ago, one used to do NET
    USE LPT2 \\computer\printer password /USER:domain\user /PERSISTENT:YES and then tell the driver to print to LPT2 –  James
    Newton Mar
    17 at 16:21   
    @JamesNewton That's actually the exact method we used. The way around the "network printer" part is to install it as local printer and map it to a TCP/IP port that way. –  Nathan
    C Mar
    17 at 16:28
    You mean in the case where the printers are TCP/IP connected and not local USB / LPT to the users workstation? That makes sense. Wonder if this will work for USB connected printers... –  James
    NewtonMar
    17 at 16:35   
    @JamesNewton You'd share the local printer on the client's PC then on the server connect via TCP/IP to it. You'd need static addresses or use DNS names if DHCP, though. –  Nathan
    C Mar
    17 at 16:51
    Ah. Yes. I see. Looks like the LPT thing should work even with a USB connected printer:superuser.com/questions/182655/… –  James
    Newton Mar
    17 at 17:09   

  • Sales document created from CRM 4.0 needs to be updated from ECC 6.0

    Hello experts,
    When I create one sales document from CRM 4.0 this document is moved to ECC 6.0. But updating sales document from ECC 6.0 I receive message
                 "Process the original document in the CRM system"
    and updates are not moved to CRM.
    How could I avoid this ?
    Usually I need update some fields from ECC 6.0 and move the information to CRM.
    Regards
    Juan

    Hi Juan,
    Please check the Note 541113 - Data exchange scenarios for orders (CRM-R/3) in which as per your requirement its the scenario Z i.e you want some data to flow from ECC to CRM for which below are the settings that needs to be done to make it effective.
    Activation of the scenario in table CRMPAROLTP of the R/3 plug-in:
    PARNAME:   CRM_SCENARIO
    PARNAME2:  UPLOAD_ORDER
    PARVAL1:   Z
    Go to SM30 and give the table name and put in the above values.
    And if you want to make amutual change situation then proceed as follows:
    Settings in the CRM Server: Table SMOFPARSFA
               Key: R3A_SALES
               Parameter Name 1: INT_CHANGE_ORDER
               Parameter Name 2: <sales document type> , for example TA
               Parameter Value 1: Z
    Settings in the R/3 system: table CRMPAROLTP
               Parameter Name: CRM_SCENARIO
               Parameter Name 2: INT_CHANGE_ORDER
               Parameter Name 3: <sales document type> , for example TA
               Parameter Value: Z
    Hope it helps.
    Regards
    Sidd

  • Re Trim file name scripts in SL

    Below is a frozen, unanswered conversation regarding the missing finder scripts in SL. Luckily, I make a complete backup before converting, so I still have all the old Leopard scripts. Norwichfan, I feel your pain, and I thought that archiving your thread without an adequate answer was wrong.
    Here's your answer. you can just get a copy of the old finder scripts, put them in /Library/Scripts and they'll show up in your script menu as before. I have zipped up a copy of them and posted them here:
    http://tedward.org/finder_scripts.zip
    norwichfan88
    Posts: 12
    From: Australia
    Registered: Mar 25, 2010
    Trim file name scripts in SL
    Posted: Mar 26, 2010 6:26 PM
    I have recently upgraded to SL and have found that the trim/add to file name applescripts from leopard are missing from my scripts menu.
    Is there a place I can find these for SL?
    MBP mid-2009 Mac OS X (10.6.2)
    Pierre L.
    Posts: 824
    From: Québec
    Registered: Jan 26, 2009
    Re: Trim file name scripts in SL
    Posted: Mar 26, 2010 6:49 PM in response to: norwichfan88
    Solved
    Maybe something similar in this web page?
    15-inch MacBook Pro 2.53 GHz Mac OS X (10.6.2) AirPort Extreme
    norwichfan88
    Posts: 12
    From: Australia
    Registered: Mar 25, 2010
    Re: Trim file name scripts in SL
    Posted: Apr 10, 2010 12:03 AM in response to: Pierre L.
    Thanks for the web page, had a look but not having done any work with applescript or other programming language was a bit over my head.
    I decided to make a temporary solution with and automator action.
    MBP mid-2009 Mac OS X (10.6.2)

    Thanks for the web page, had a look but not having done any work with applescript or other programming language was a bit over my head.
    I decided to make a temporary solution with and automator action.

  • Query to show MS updates including update name, OS applicable...

    Hi guys, does anyone have a SQL query which will provide the following results?
    Article ID
    Update Name
    Applicable to which OS
    Bulletin ID
    Classification (critical, Rollup, etc.)
    Whether or not it's expired
    Whether or not it's enabled
    CI ID
    I can get most of these by using the below query, but how I do I get the classification and which OS they are applicable?
    select CI_ID, IsEnabled, IsExpired, IsSuperseded, Title, Description FROM v_UpdateInfo
    Is there another table I should be using/referencing?

    Hello,
    Software Updates Views in Configuration Manager
    should be helpful to you. If SUSDB is installed on SQL server instead of windows internal database, you may also try
    WSUS views.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Maybe you are looking for