Update and/or replace user with Powershell

Have one site collection (with team sites and publishing site - mostly) where a specific user no longer works in the company.
I therefore need to replace this specific user on all documents, all pages, all sites, all list - yeah everything where he resides in SP.
I've previously got this - but that's not enough.. 
$user = Get-SPWeb -Identity "DOMAIN\username" -Web http://webUrl
Move-SPUser -Identity $user -NewAlias "DOMAIN\newusername" -IgnoreSID
I can't be the only one who need to do this - so can someone guide me to a powershell script that can accomplish this?
Thanks ! 

That is because you're just migrating the username, not any of the other properties. If you have the User Profile Sync Service running, eventually that information will be updated on each Site Collection.
Trevor Seward
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • My company runs Adobe Acrobat XI on a PC.  Our PC went down and we replaced it with a new one.  We need Acrobat XI on it and have bought it already.  How can I get it put onto our new computer?

    My company runs Adobe Acrobat XI on a PC.  Our PC went down and we replaced it with a new one.  We need Acrobat XI on it and have bought it already.  How can I get it put onto our new computer without having to buy it again?

    Hi chrisb75729216,
    I checked with your account but could not find any order history so you might be using another email address on forums.
    You will first need to deactivate Acrobat from old machine and then install Acrobat on the new machine by activating with the same serial number.
    Please download Acrobat XI pro from here: Other downloads
    If you have single user license, then remember that the software can be activated on maximum two computers, say your desktop at work and laptop at home.
    Regards,
    Anubha

  • My 5th gen. ipod died and they replaced it with a new one, but I'm having problems getting the music. An error message says that its not authorized on this computer. The ipod is synced but it wont let me add what music I want.

    My 5th gen ipod died and apple replaced it with a new one. I synced it up to the itunes that I already have on my computer but an error message keeps coming up telling me that its not authorized on this computer. What do I do?

    About iTunes Store authorization and deauthorization
    iPod: Troubleshooting songs and audiobooks that won't play
    iPod does not play content purchased from the iTunes Store

  • I bought a new iphone and as i was setting my apple ID account and i signed in to my account and confirmed two useres with diffrent numbers that were signed to the same apple ID and it messed up my i messege and face time. how do i fix that ?

    i bought a new iphone and as i was setting my apple ID account and i signed in to my account and confirmed two useres with diffrent numbers that were signed to the same apple ID and it messed up my i messege and face time. how do i fix that or delete one user ?

    Hello sapiii96,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    To sign out of your Apple ID
    Go to Settings > FaceTime, tap your Apple ID, and select Sign Out.
    Go to Settings > Messages > Send & Receive, tap your Apple ID, and select Sign Out.
    Best of luck,
    Mario

  • My pc crashed and I replaced it with an iMac, how do i get my iPad and iPhone music and apps back into iTunes?

    my pc crashed and I replaced it with an iMac, how do i get my iPad and iPhone music and apps back into iTunes?

    Connect the iPhone to your Mac, launch iTunes.
    From the menu bar click Store / Authorize This Computer
    Read here >  iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer

  • SUN TEAM: Bugs in update and delete a record with long query

    Creator Team,
    In my opinio there is a bug issue with update and delete a record with a complex sql query. I�m using oracleXE and ojdbc14.ar with tomcat
    In just two page I�m receving the following msg (I have 12 pages doing the same thing with less complex queries)
    * Number of conflicts while synchronizing: 1 SyncResolver.DELETE_ROW_CONFLICT row 2 won't delete as values in database have changed: 2006-11-29
    * Cannot commit changes: Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 values changed in database
    when i tried to delete or commit the updated changes in the register...
    The interesting is that this code function with jdbc of jsc...
    My query is bellow:
    SELECT ALL PATRIMONIO.TB_BEM.INCODIGOBEM,
    PATRIMONIO.TB_BEM.VATOMBAMENTO,
    PATRIMONIO.TB_BEM.VAMATERIAL,
    PATRIMONIO.TB_BEM.INCODIGOSETOR,
    PATRIMONIO.TB_SETOR.VANOME AS NOMESETOR,
    PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR,
    PATRIMONIO.TB_FORNECEDOR.VANOME AS NOMEFORNECEDOR,
    PATRIMONIO.TB_BEM.DACHEGADA ,
    PATRIMONIO.TB_BEM.DASAIDAPREVISTA,
    PATRIMONIO.TB_BEM.DASAIDAEFETIVA,
    PATRIMONIO.TB_BEM.VAMARCA,
    PATRIMONIO.TB_BEM.VAMODELO,
    PATRIMONIO.TB_BEM.VADESBAIXABEM,
    PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO,
    PATRIMONIO.TB_TIPOAQUISICAO.VANOME AS NOMETIPOAQUISICAO
    FROM PATRIMONIO.TB_BEM , PATRIMONIO.TB_TIPOAQUISICAO, PATRIMONIO.TB_SETOR, PATRIMONIO.TB_FORNECEDOR
    WHERE PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO = PATRIMONIO.TB_TIPOAQUISICAO.INCODIGOTIPOAQUISICAO
    AND PATRIMONIO.TB_BEM.INCODIGOSETOR = PATRIMONIO.TB_SETOR.INCODIGOSETOR
    AND PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR = PATRIMONIO.TB_FORNECEDOR.INCODIGOFORNECEDOR
    AND PATRIMONIO.TB_BEM.INCODIGOBEM LIKE ?
    AND PATRIMONIO.TB_BEM.VATOMBAMENTO LIKE ?
    AND PATRIMONIO.TB_BEM.VAMATERIAL LIKE ?
    AND PATRIMONIO.TB_SETOR.VANOME LIKE ?
    AND PATRIMONIO.TB_FORNECEDOR.VANOME LIKE ?
    ORDER BY PATRIMONIO.TB_BEM.VATOMBAMENTO ASC
    Why this problem is happing? Did you had some solution for that? Is the problem because the query is too long?!
    please help me!
    Gustavo Callou

    Hello people,
    I�m doing this to try to solution that bug:
    This code is working fine... but I do not understand why I�m receiving the nullpointer exception!??!!?
    // create a new rowset
    CachedRowSetXImpl pkRowSet = new CachedRowSetXImpl();
    try {
    RowKey rk = tableRowGroup1.getRowKey();
    if (rk != null) {
    // set the rowset to use the Patrimonio database
    pkRowSet.setDataSourceName("java:comp/env/jdbc/Patrimonio");
    String query = "DELETE FROM TB_BEM WHERE INCODIGOBEM = "+tb_bemDataProvider.getValue("INCODIGOBEM", rk).toString();
    pkRowSet.setCommand(query);
    pkRowSet.setTableName("TB_BEM");
    // execute the rowset -- which will contain a single row and single column
    pkRowSet.execute();
    pkRowSet.next();
    info("Apagado");
    } catch (Exception ex) {
    log("ErrorDescription", ex);
    error(getApplicationBean1().trateException(ex.getMessage()));
    } finally {
    pkRowSet.close();
    Please someone help me!!!
    Gustavo Callou

  • HT4528 I installed the new update and it is frozen with a picture of the charger head, an arrow pointing to a iTunes image. How do I get my phone to work properly?

    I installed the new update and it is frozen with a picture of the charger head, and an arrow pointing to a iTunes icon. How do I get my phone to work properly?

    What happened when you tried to restore and update the iPod?

  • When i do update to my iphone my pc shut down and dont finish update and now not connect with my pc

    when i do update to my iphone my pc shut down and dont finish update and now not connect with my pcm just show (my iphone ) connect with itunes

    Try this:
    http://support.apple.com/kb/HT1808
    Regards.

  • Adobe Pro XI deletes and/or replaces letters with blank spaces or an x

    How do I fix the problem where Adobe Pro XI deletes and/or replaces letters with blank spaces or an x.
    This is really annoying to have to go back to each thing I type into a document and re-choose the fonts to get them to be correct.
    Thanks for your help!

    Adobe is a company, not a program... do you mean ACROBAT Pro?
    If yes, this is the Premiere Pro video editing forum, you need to go to http://forums.adobe.com/community/acrobat

  • Powershell Script to Remove and Add the user with same permission

    Hi,
    I need to remove all users within all site collection of a web application and add them back with same permission level. We have a siteminder based custom trusted identity token issuer configured in our farm. The name of the issuer will be changed
    due to some architectural decissions , hence all users which are there before will be unidentified, hence need to be removed and added again.
    Currently each user looks like :                       c:0ǹ.t|Identity Token Issuer1|user1
    Post the change the user will look like:          c:0ǹ.t|Identity Token Issuer New|user1
    I am looking for a powershell script which can handle this operation.
    Thanks, Bivsworld

    Bivsworld,
    Below link should give you a start.
    http://www.sptechlearn.com/2014/10/delete-users-from-user-information-list.html

  • 10.4.7 update  and external firewire problems with HD corrupion

    Dear all,
    Advised by Jpfresno I started this new topic about Tiger 10.4.7 update.
    I will repeat my post and what was happening 2 weeks ago:
    “In 5 years 10.4.7 update was a tragedy for my Powerbook Ti 667. When I update from 10.4.6 to 10.4.7 my 300 GB firewire drive gets corrupted, after repairing it with DiskWarrior and after connecting it to my PowerBook my computer freezes and I must shut it down via powerbutton. Safari also crashes after the update.
    I just erase my Hard Drive and after that install 10.4 and update with combo to 10.4.7. But I had the same problems: finder freezes with connected firewire devices and also safari when browsing. I spend a week trying to solve the problem but no luck.
    Yesterday and with no firewire devices, 10.4.7 freeze and I have big trouble in order to started my powerbook!!! Even when i insert the 10.4 install DVD it did not detected my HD. Finally I get it to work and install 10.4 and combo update to 10.4.6 and everything works. My external firewire drive and safari. I already diagnose my HD with disk utility, TechTool and directories with Diskwarrior and everything is ok.
    I clone my 10.4.6 to firewire, boot from it and everything is working. I let my external drive connected and finder does not freeze.
    My conclusion is that the problem is 10.4.7 update. It only give me problems and I was getting crazy with it. 10.4.6 is working good and I do not advice anyone to update to 10.4.7.”
    Last week after reinstalling 10.4.6 I started to have HD problems with my Powerbook 667. I did a surface scan with TechTool I it reported bad sector. Then I done a zero disk format but after a second surface scan TechTool also reported bad sector. Then I take the decision to replace my internal HD. I bought a Samsung 40GB Hard Drive and installed it on my PowerBook. Then I have done a clean installation of 10.4.6 with all applications that I need and clone it to my hard drive with Intego Personal Backup software. Everything works on 10.4.6. and external firewire drive.
    After that everything is ok. But I decided to test if my problem derivates from 10.4.7 update or from previous HD corruption. Then I install 10.4.7 update on my Internal Hard Drive. Everything is working good but after connecting my external Hard Drive the finder started to freeze!!!!!!!!!. After that I tried cloning HD to external firewire with Intego personal Backup. Everything was working good but when it was finishing the backup process started to give errors!! I started panic. I interrupted the backup process but after and after restart I found something strange with 10.4.7. The system started up, I login but I could not started any application!!!??? All my application died!
    Then I have done one more clean installation of tiger and 10.4.6 update.
    My conclusions are that the 10.4.7 update causes all the problems that I have on my PowerBook, because I used the same methods and same software/hardware on 10.4.6 and did no have any problem.
    This last two weeks were very difficult to me. I tough that these problems do not happen with Apple computers but I was wrong!!! It is very hard to me to deal with it. I always said to my friends that I never had problems with Apple computers. I accept that a hard drive died because the use of it but I can not accept that a system update cause me 2 weeks of hard problems and make me loose precious work information! I always love apple computers and Apple OS but now I am disappointed
    If anyone can explain what happen or have a solution for those problems?
    Thanks for the comprehension and collaboration.
    Best Regards
      Mac OS X (10.4.6)  

    Hi, alsvieira.
    There are some things you did not check in all of your troubleshooting:
    1. Run the Apple Hardware Test (AHT) that came the affected computer. See my "Apple Hardware Test" FAQ for comprehensive advice on using the AHT in troubleshooting.
    2. re: FireWire troubleshooting: Here is some general troubleshooting advice that may help if problems return with your FireWire drive:1. Review the AppleCare Knowledge Base document "What to do if your computer won't recognize a FireWire device".
    2. If this problem occurred after installing a recent Mac OS X Update, and you are also unable to mount CDs, DVDs, or disk images perform the steps in this Mac OS X Hints article. This worked under Panther and may also work in certain situations under Tiger.
    3. Power-on the FireWire drive before starting up (booting) your Mac.
    4. Reset PRAM and NVRAM.
    5. Resett the power-management chip in your Mac.
    6. Try a different FireWire port. James Wiebe, CEO of WiebeTech, has published FireWire Port Failures in Host Computers and Peripheral Devices, a white paper providing backgroud information and technical analysis concerning the causes of failure for FireWire ports. This may provide additional diagnostic information.
    7. Micromat TechTool Pro version 4 can test the FireWire bus in your computer: this tests the bus — not the ports — but if the problem is on the FireWire bus on the logic board, it should reveal it.
    8. Check with the manufacturer of your FireWire drive or enclosure to see if any firware updates are available for such.
    9. Hopefully, the partition map on the FireWire drive is not damaged. This can happen if the FireWire drive was not Ejected before being disconnected or powered off. If it still refuses to mount, you may need to employ data recovery tools or services: see my "Data Recovery" FAQ.Note that some of the information above is from the "FireWire Problems" chapter of my book, Troubleshooting Mac® OS X.
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • HT4623 I am trying to update my i-phone 4 with IOS 7.1.1 it has twice got 400mB in to the 1.3GB update and then dropped out with an "error has occured" message.....any ideas?

    I-phone 4........I am being auto-prompted to update my IOS from 7.1 to 7.1.1. Each time I try to do that on i-tunes it gets to about 400Mb of the 1.3Mb file and then drops out with an "error has occured" message. I have 5Gb free space on the phone. I have tried to do that wirelessly also and it says "an error has occured while checking for a software update"........does anyone have any ideas?....thanx

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • Export and Import of Users with ABAP datasource to  target standalone EP.

    Hi Friends,
    My customer is having
    Source System:BS2
    ABAP+ JAVA --- usage type : BW, EP
    datasource -- ABAP
    now, they need datasource as LDAP
    so i have suggested as attached SOW
    1.Install New Instance BS3 with JAVA,EP,EP Core
    2.Patching BS3 to SP15 level
    3.Import PCD from BS2 to BS3
    4.Configure SSO between BS2 and BS3
    5.Configure Data source to LDAP
    6.Testing the Configurations
    7. Uninstall JAVA DATABASE from BS2
    Target System:
    Standalone JAVA-- only EP
    datasource -- LDAP configured
    I have completed all steps successfully from 1 to 5
    In source system, 45 users are there with ABAP datasource and ABAP roles...  Now how can i import those users with ABAP roles into target System ( Standalone  EP)
    Any Usermapping is required to configure.
    Please suggest me to workaround on this.
    Regards,
    Venkat.

    You have to do this manually. In theory you can make a specially formatted text file to create the users and assign their portal groups, but it is quicker to just add them using the useradmin tool. If you export a user from the Java useradmin tool you can see the format of the text file. I ahve written an ABAP in the past to do the text file creation, but I can't find it now

  • HT201210 I tried to update my iPod to the latest version and it didn't complete.  says it could not be updated and my iPod froze with the apple icon and the progression bar.  it won't go away. iTunes doesnt recognize the device.

    I tried to update the latest version for the iPod touch and it couldn't complete the install.  my iPod screen had the apple icon with the progression bar when it couldn't update and it stuck there.  iTunes doesn't recognize my device. 
    How do I restore, if iTunes doesn't see my iPod?

    Plug your device into iTunes. Hold the home & sleep buttons at the same time. After 10 secs release the 2 buttons. iTunes will tell you it's found a device in DFU mode. The iPod screen will stay black. At this point do a restore. If you see the Apple logo you have held them for too long.

  • Any limitation on number of fill and print forms I can post on my website and have external users with Reader fill in, print and mail to me? (I don't need/want them to be able to fill and save data.)

    I would like to post fillable only forms to the public but not give them the option to save or email the filled in form. If they want a copy of what they've filled in, they must print it.
    I believe I can do this by just creating a fillable PDF and posting it without adding any reader extension capabilities. I also believe there is no limitation, as there is for fill and save forms as per this other post I read: Adobe Acrobat X Pro * Enable Reader users to save form data.
    My IT department is telling me they will not allow me to post fillable PDFs online due to a "license limitation" so I started researching this myself, and the above link is the only thing I've found. While that post specifically outlines the limitations on saving filled in forms, I'm really looking for something that specifically tells me that there is no limitation on fillable, non-saveable (yes, I know that's not a word...) forms.
    If anyone can provide additional information for me, I'd appreciate it. Or, if I'm completely wrong in my belief and there's a limitation either way, feel free to set me straight. I'd rather know the correct answer than be right!
    Thanks!!

    If you don't Reader-enable a document, then there are no licensing restrictions involved. Note that Reader 11 and all versions of Acrobat are able to save non-enabled forms, unlike previous versions.
    The question should not be whether a form is savable, but rather whether you used Acrobat to add usage rights to the form AND you (the licensee) plan on receiving filled-in instances (including hardcopies) of it. The simplest way is to not Reader-enable the form and convince your users to use Reader 11 (or Acrobat) if they want to save.

Maybe you are looking for

  • IPhone 4S won't charge anywhere in my house if its powered on, only off - but will charge by USB port in my car. Help!?

    I know part of my question is a repeat of others, but - I can't find one on the boards that matches mine exactly. Basically, many months into having my phone (I'm updated to the current software), my phone is refusing to charge by wall sockets. I tho

  • Need to generate the excel file with diffrent sheets using utl_file package

    Hi, Sorry for previous message in which I had missed the usage of " UTL_FILE " package I need to generate the excel file with diffrent sheets . Currently I am generating the data in three diffrent excel files using " UTL_File " package and my require

  • Scatter plot using time series function - Flash charting

    Apex 3 + XE + XP I am trying to build a time series scatter plot chart using flash chart component. Situation : On each scout date counts are taken within each crop. I want to order them by scout dates and display them in a time series chart. Each se

  • Problem with cups [Moved]

    Whenever I print a page using cups, it first prints out an extra page saying who printed it, what time, etc.  It's a useful feature, but it wastes a lot of paper.  Is there any way to disable it?  Thanks Edit: Sorry, wrong forum...

  • Securing a jar for shipment

    Has anyone tried to secure a jar for packaging it up and shipping it off to a customer to avoid decompilation of the classes? For example, WinZip offers a password protection for a zip file, using the Zip 2.0 standard, which is not very secure. To BE