Uninstall Microsoft Office 2013 using Invoke-TroubleshootingPack

Hi,
I'm deploying an uninstallation package to uninstall Office 2013 using the ingenious Microsoft Fix it (located here: http://support.microsoft.com/kb/2739501/en-us)
called O15CTRRemove.
When running it manually, it removes everything that is related to Microsoft Office 2013 and I am able to install a new Office 2013 without any problems (changing from Office 365 to VL).
The problem is as follows:
I need to do this silently on a lot of computers using a deployment tool. I figured out how to use powershell and I'm doing it in the following way:
Import-Module TroubleshootingPack
$DIAGOFFRemoveOff2013 = Get-TroubleshootingPack -Path "C:\Deployment\Office2013Uninstall\O15CTRRemove"
Invoke-TroubleshootingPack -Pack $DIAGOFFRemoveOff2013 -AnswerFile "C:\Deployment\Office2013Uninstall\DIAG_Off_RemoveOff2013.xml" -unattended
I created the Answerfile DIAG_Off_RemoveOff2013.xml in the following way (according tohttp://blogs.technet.com/b/heyscriptingguy/archive/2011/02/09/use-powershell-troubleshooting-packs-to-diagnose-remote-problems.aspx):
Get-TroubleshootingPack "C:\Deployment\Office2013Uninstall\O15CTRRemove" -answerfile "C:\Deployment\Office2013Uninstall\DIAG_Off_RemoveOff2013.xml"
It looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<Answers Version="1.0" />
When I run the script it works but for some reason, it doesn't work when I run it as system (my deployment tool runs the script as system, and I've tried it manually like this):
psexec -i -s cmd
cmd /C powershell -executionpolicy unrestricted -file "C:\Deployment\Office2013Uninstall\Uninstall_Office2013.ps1"
It just hangs and I can see in eventviewer that it has run a few troubleshooting packs, that the uninstall of Office is complete but it doesn't continue until I force kill sdiagnhost.exe.
If I run the script after killing sdiagnhost.exe, it finishes without a problem.
I have temporarily solved it like this (I run the same job twice, to be sure everything is removed and the second one finishes quickly while the first hangs until the timeout):
Start-Job -ArgumentList -ScriptBlock {
 $DIR = "C:\Deployment\Office2013Uninstall"
 Import-Module TroubleshootingPack
 $DIAGOFFRemoveOff2013 = Get-TroubleshootingPack -Path "${DIR}\O15CTRRemove"
 Invoke-TroubleshootingPack -Pack $DIAGOFFRemoveOff2013 -AnswerFile "${DIR}\DIAG_Off_RemoveOff2013.xml" -unattended
Get-Job | Wait-Job -Timeout 1200
Get-Job | Receive-Job
Get-Job | Remove-Job -Force
Start-Job -ArgumentList -ScriptBlock {
 $DIR = "C:\Deployment\Office2013Uninstall"
 Import-Module TroubleshootingPack
 $DIAGOFFRemoveOff2013 = Get-TroubleshootingPack -Path "${DIR}\O15CTRRemove"
 Invoke-TroubleshootingPack -Pack $DIAGOFFRemoveOff2013 -AnswerFile "${DIR}\DIAG_Off_RemoveOff2013.xml" -unattended
Get-Job | Wait-Job -Timeout 1200
Get-Job | Receive-Job
Get-Job | Remove-Job -Force
I am thinking that there is some kind of dialogue questions that I need to get into the answer file, but I have no idea how to do it.
Any help is appreciated!
Best regards,
Simon

Credit goes to MS for core script (its to long to post here).
Credit goes to the guy who wrote the cleaner script.  Whoever packaged it and didn't build in silent switches gets zero points.
Please note that this will only work for C2R installs of Office 2013.
This is not true.  There are scrub scripts specific to C2R as well as MSI.
I extracted the scrub vbs from O15CTRRemove.diagcab
This is what worked for me.  Use 7-zip to extract the entire package to a directory.  Then run "OffScrub_015msi.vbs all".

Similar Messages

  • Uninstall Microsoft Office 2010 using intune

    Has anyone successfully uninstalled Office 2010 using Intune to push the command?
    I just upgraded all users to 2013 but would like to remove the old office.
    Thanks
    Ivan Nix

    I know this is very old but I’m trying to clean up old posts. Did you ever solve this? If so it would be good if you could post the solution to assist others. If not, at this
    stage, as nobody has answered, I would recommend that you call Intune support if the issue still exists.
    You will find your local Intune support number here
    http://technet.microsoft.com/en-US/jj839713.aspx
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • This copy of Microsoft Office 2013 cannot be used on a computer running Terminal Services" error message when you try to open the Click-to-Run version of an Office 2013 program or suite on a terminal server

    Hi All,
    I have Citrix VDI (Virtual Desktop Infrastructure) Implemented
    in my company and installed few Applications on App Server lets say.... MS Office 2013, filzialla, putty, etc...
    I assigned these apps to the users through CITRIX STUDIO, when I try to use these apps. on VDI everything is working fine only when i tried to open Word, Excel or Powerpoing, outlook it throws error as 
    ""This copy of Microsoft Office 2013 cannot be used on a computer running Terminal Services" error message when you try to open the Click-to-Run version of an Office 2013 program or suite on
    a terminal server"" and apps gets closed.
    Please help me on this ASAP.
    Thanks & Regards,
    Sachin Shinde

    Hi,
    As mentioned in ths article below, run for Office 365 products on to a Remote Desktop Session Host server is not supported. You can install Office products for Office 365 to a virtual desktop, but the virtual desktop must be assigned to a single user.
    http://technet.microsoft.com/en-us/library/jj219423(v=office.15).aspx
    Regards,
    Melon Chen
    TechNet Community Support

  • How to add shortcuts to user Start Menu and Taskbar or Desktop with using Microsoft Office 2013 Config file.

    Hello,
    How can i add the shortcuts for Office 2013 feature (Word, excel, ext) to the users taskbar or desktop with using config.xml file while installing the Microsoft Office 2013 from SCCM?
    I know how to do that with OCT, but i have another problem if i use OCT. So i have to do it with Config.file, but i don't know which code can i write on config.xml file to create shortcut on desktop or taskbar...
    Regards,

    Hi
    There is a known issue about
    changing the shortcut location for an Office 2013 application:
    When you try to change the shortcut locations for Office 2013 applications in the Office Customization Tool (OCT), you receive the following error message:
    Invalid start in folder. Please try again.
    Then, you add the Start in location for Office 2013 and run a customized installation. When you double-click the shortcuts that are displayed on the desktop, Configure shortcuts does
    not work and you receive the following error message: 
    Sorry, we couldn’t find your file. Is it possible it was moved, renamed or deleted?
    To work around this issue, type a single open bracket ([) in the Start in
    field.  
    In addition, refer to the link below on "Configure shortcuts" in OCT:
    http://technet.microsoft.com/en-us/library/cc179097.aspx#Configure_shortcuts
    Regards
    Tylor Wang
    TechNet Community Support

  • Microsoft office 2013 encountered an error during setup in Window 8.1

    Initially, I got microsoft office 2013 64bit standard version installed in window 8.1. However, it suddenly got errors when opening office, and closed the program automatically. Therefore, I uninstalled it, and tried to re-install office.
    However, I got the error "microsoft office 2013 encountered an error during setup" everytime when I try to install it.
    I tried 32-bit and 64 bit version, and tried to install in clean boot, deleted registry, and modified the folder name "Microsoft Help", but none of them works. 

    Make sure you completely uninstall previous versions of Office. There may be remnants left behind, even after you uninstall Office using the normal procedure. I recommend using the “Fix It” utility to uninstall Office 2013 completely. Please refer to this
    article: http://support.microsoft.com/kb/2739501/en-us you might also follow the manual steps provided on the same page.
    If you still having problems, re-registering the Windows Installer and checking permissions on the %TEMP% folder and the C:\Windows\Installer folder to make sure you have full-control. To re-register the Windows Installer run the following commands:
    msiexec /unregister
    msiexec /register

  • Microsoft Office 2013 (Word,excel) Still appear as "Standard" after migrate in ProPlus 365

    Hi,
    I'm planning a mass deployment of Microsoft Office 365 ProPlus with SCCM 2012.
    I made my application, and added a supersedence of Microsoft Office 2013.
    So when I deploy ProPlus, It first uninstall Office 2013, then reboot, then install Office ProPlus 365
    My problem is that when it install Office ProPlus product that I had on Office 2013 and I go in Account tab, I still see "Microsoft Office Standard 2013"
    When I see the others product, I see Microsoft Office ProPlus.
    I'm sure that Standard is uninstalled first, I can also see in Add/Remove programs that there is no Standard version.
    Is that just a bug, or some of my product hasn't migrate on Office 365 Proplus ?
    Thanks ! :)

    @Don, I reboot the client computer after uninstalling Office 2013. Nothing have changed.
    @Aravindhan, I'm lauching Office from the start menu. I already tried to just uninstall Office and see what's happen. Office uninstalling correctly. But When I install ProPlus, I can see "Office Standard" in account tab.. (and Standard doesn't
    appear in Add/remove programs)
    Maybe check c:\windows\temp\SetupExe(YYYYMMDDHHMMxxxxx).log
    This is the Office (MSI) setup logfile, to see if there were any uninstallation errors?
    Are there any standalone Office products installed previously, e.g. SharePointDesigner or similar ?
    It might be necessary to use OFFSCRUB.VBS (from the Office removal Fixit) to clean that up?
    http://blogs.technet.com/b/odsupport/archive/2011/04/08/how-to-obtain-and-use-offscrub-to-automate-the-uninstallation-of-office-products.aspx
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • MICROSOFT OFFICE 2013 HOME AND BUSINESS

    Hello 
    i just bought new microsoft office 2013 home and business licenced software .and we are using THIN CLIENT device in our premises and working remote desktop ,but after installation of msoffice the message showing
     "This copy of Microsoft Office 2013 cannot be used on a computer running Terminal Services" error message when you try to open the Click-to-Run version of an Office 2013 program or suite on a terminal server."
    it means i am facing issue with office 2013 home business that can not be used on terminal services.
    so pls help me to resolve this error

    Retail editions of Office can't be used on RDS/TS - only Volume Licensing editions can be used.
    Recently, Office365ProPlus was updated to provide "Shared Computer Activation", but this doesn't apply to Retail editions such as H&B.
    http://www.microsoft.com/licensing/about-licensing/briefs/remote-desktop-services.aspx
    5. Can I install a retail or OEM version of Microsoft Office on a network server?
    Microsoft Office retail (full packaged product) and original equipment manufacturer (OEM) products released in 2007 or later
    do not permit network use.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Recieveing "OnUCAppointmentGetVisible" error in Outlook 2013 (64 bit) - "Custom UI Runtime Error in Lync Meeting Add-in for Microsoft Office 2013"

    Hi All,
    I originally posted this in the MS Support forums (http://answers.microsoft.com/en-us/office/forum/office_2013_release-outlook/recieveing-onucappointmentgetvisible-error-in/1a40eca2-8cd1-40f1-a92f-cb08f0af6b72), but was directed over here.
    I have recently upgraded an installation of Office 2010 to 2013 (both 64 bit) but am now receiving an error which says:
    Window Title - "Custom UI Runtime Error in Lync Meeting Add-in for Microsoft Office 2013"
    An error occured while calling the callback: "OnUCAppointmentGetVisible"
    This seem to happen when I initially open a calender entry, and when I close the entry (most only the first time I close the entry).
    I did have some developer tools installed for Office 2010 and VS 2010 which played around with Excel,2013 but I have now uninstalled these.
    In addition, BCM 2010 was installed (but for the time being has been uninstalled), but I don't think that is the culprit.
    The issue is being caused be an Outlook add-in. I have three COM add-in enabled, but the one causing the issue in the "Lync Meeting Add-in for Microsoft Office 2013".
    We are currently trialling Lync in a demo installation which is in a different domain to any of the Exchange accounts, but should this cause a problem? For the time being I have disable this add-in.
    Regards,
    Chris
    Chris

    Hi,
    Sorry for my misunderstanding. If the issue is determined to be caused by Lync Meeting Add-in, please remove this add-in from Outlook, then go to Control Panel to repair Office 2013 program. After repairing,
     this add-in would be automatically reinstalled. Please check whether the issue persists. About how to repair Office programs, please refer to:
    http://office.microsoft.com/en-us/outlook-help/repair-office-programs-HA010357402.aspx
    If the Lync Meeting Add-in is not automatically reinstalled, please try to manually add this add-in by the following steps:
    1. Starting Outlook 2013 as an Administrator (right click, run as Admin).
    2. Click File > Options > Add-ins, Manage Com Add-Ins Go... > Add..., C:\Program Files (x86)\Microsoft Office\Office15\UCAddin.dll, OK.
    3. Close Outlook and start it as a normal user.
    Regards,
    Winnie Liang
    TechNet Community Support

  • How to Install Visual Studio 2010 on a PC with Microsoft Office 2013 with 64 bits

    I am with problems to have acess to the link: http://www.microsoft.com/en-us/download/details.aspx?id=12187
    Why?
    I want do install Visual Studio 2010 on a PC with Microsoft Office 2013 with 64 bits. How can I do it?
    Thanks.

    Hello Carla Sofia,
    Visual Studio installation do not depends on Microsoft Office 2013. They do not have relationship here. I think your problem is that you cannot find the link to install Visual Studio 2010.
    In order to know why, please see here:
    https://support.microsoft.com/en-us/lifecycle/search/default.aspx?sort=PN&alpha=Visual%20Studio%202010&Filter=FilterNO
    The mainstream support for Visual Studio 2010 is already expired and that is why you cannot open any link about Visual Studio 2010 Setup.(I cannot verify whether that link is about VS2010 Setup.)
    I think you need to think about the following:
    1. If you need Visual Studio 2010, you may have to consider some other channels. For example, official site you can try use MSDN Subscription. For non-official site. Sorry I cannot provide any place for you
    2. You can use other latest version of Visual Studio, for example, we have Visual Studio 2012, 2013, 2015 for you to use. You can also use Visual Studio Express 2010 version. It is still available for download.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • TS3938 how do i uninstall microsoft office 2004 from my new macbook pro intel 5.....

    When it won't allow me. I get the same popup window message. "You can't open the app...beacause PowerPC apps are no longer supported."
    Can anyone help or offer advice please.
    kind regards
    vickynsimon

    vickynsimon wrote:
    When it won't allow me. I get the same popup window message. "You can't open the app...beacause PowerPC apps are no longer supported."
    Can anyone help or offer advice please.
    kind regards
    vickynsimon
    Vicky:  The initial question is why do you want to uninstall Microsoft Office 2004?
    If your answer is that you are upgrading to Office 2011, my recollection is that the installation process of Office 2011 will do all of the proper "uninstalling" that is necessary as it installs all of the necessary new files.
    If your answer is that you do not intend to ever use Office again, including any of the data files that were created from it: then at this point, I would suggest that you just leave it alone.  Manually uninstalling raises more risks than it cures.
    Even if you do upgrade to Office 2011, if you have continuous need to have access to your Office 2004 data files, you may find that Office 2011 does not properly translate some of your old files correctly.  I have this problem with an Excel 2004 chart that I access on a weekly basis and it gets trashed by Office 2011. 
    I have solved this problem by installing Snow Leopard (with Rosetta) into Parallels 7 in Lion (and reinstalling Office 2004 inside the Snow Leopard environment):
                             [click on image to enlarge]
    In this way I can access my Excel 2004 chart, modify it as needed and save the changes.
    Full Snow Leopard installation instructions:
    http://forums.macrumors.com/showthread.php?t=1365439

  • Microsoft Office 2013 has stopped working

    Please can you help?  My PC is running Windows 8 Professional Plus 64 bit.  I downloaded and installed Microsoft Office 2013 32 bit and it worked perfectly until I changed my graphics card to an Asus Radeon HD6450 Silent.  Since then, all
    the programmes, Outlook, Word, Excel etc. have stopped working.  I have Microsoft Office 2010 32 bit installed as well and that is still working fine.
    I have tried removing COM Add-ins and have also repaired MS Office 2013 but neither have worked.  I have read the KB article but the driver dlumd32.dll does not appear to be installed on my machine.  All the applications will run in Safe Mode.
    I have uninstalled Office 2013 and re-installed it but at the end of the installation I got the ‘Microsoft Office has stopped working’ message.
    The event logs for each say:
        EventData
                outlook.exe
                15.0.4433.1506
                508fa723
                atidxx32.dll
                8.17.10.453
                5064ffd8
                c0000005
                003c376c
                e7c
                01ce1cfcf2eb3b12
                C:\Program Files\Microsoft Office 15\root\office15\outlook.exe
                C:\WINDOWS\SYSTEM32\atidxx32.dll
                34205235-88f0-11e2-be82-002354da9f87
                powerpnt.exe
                15.0.4433.1506
                508fa697
                KERNELBASE.dll
                6.2.9200.16451
                50988950
                e0000003
                00014b32
                1414
                01ce1e86a1ccb5b6
                C:\Program Files\Microsoft Office 15\root\office15\powerpnt.exe
                C:\WINDOWS\SYSTEM32\KERNELBASE.dll
                e773a04c-8a79-11e2-be83-002354da9f87
    onenote.exe
                15.0.4433.1507
                509dd98c
                unknown
                0.0.0.0
                00000000
                c0000005
                0166008c
                de8
                01ce1e86907c6cb7
                C:\Program Files\Microsoft Office 15\root\office15\onenote.exe
                unknown
                d162f65f-8a79-11e2-be83-002354da9f87
    outlook.exe
                15.0.4433.1506
                508fa723
                atidxx32.dll
                8.17.10.453
                5064ffd8
                c0000005
                003c376c
                b40
                01ce1e867fe36df0
                C:\Program Files\Microsoft Office 15\root\office15\outlook.exe
                C:\WINDOWS\SYSTEM32\atidxx32.dll
                bf7330ec-8a79-11e2-be83-002354da9f87
        IEXPLORE.EXE
                10.0.9200.16482
                50cfc9bf
                atidxx32.dll
                8.17.10.453
                5064ffd8
                c0000005
                000135b4
                9b8
                01ce19d63a5e4f4c
                C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
                C:\WINDOWS\SYSTEM32\atidxx32.dll
                7b558297-85c9-11e2-be7e-002354da9f87

    Hi Lesley,
    By checking the event log you provided, it seems this problem also occurs with Internet Explorer, isn't it?
    And most of them are related to the atidxx32.dll file, I'd suggest we remove the graphics driver and see if this problem will still occur, if no, try to install any ohter version of graphics driver to see if this problem will still occur.
    Max Meng
    TechNet Community Support

  • Any Fix / Update For Microsoft Office 2013 Free/Busy Information Issue

    Any official update / fix regarding the Microsoft Office 2013 Free/Busy Information Issue? (not the workaround I found to uninstall KB2837618
    and re-create profile).
    Reference: http://helpdesk.missouristate.edu/news/two-microsoft-updates-cause-problems-with-outlook-2013
    Thanks a lot,
    Moshe

    Refer to the solution which delivery by Hypocrit from another thread with the same topic.
    http://social.technet.microsoft.com/Forums/en-US/827a12f0-c785-43df-a71f-0b21aeffa176/outlook-2013-freebusy-fails-after-updates?forum=officeitpro
    I've copied the replies below:
    "With mfcmapi open your Profile under the Profile->Show Profile
    then double-click "Outlook" or how your Profile is named
    then double-click "Microsoft Exchange"
    then double-click your mailaddress (both) and remove PR_DELETED_FOLDERCOUNT with value SMTP: or correct them"
    http://mfcmapi.codeplex.com/releases/view/101020
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    More reference post:
    http://social.technet.microsoft.com/Forums/en-US/a926f0b5-0e66-4f43-8ac3-50791df16154/microsoft-office-2013-freebusy-information-issue?forum=officeitp
    Tony Chen
    TechNet Community Support

  • How can I get back (Microsoft Office 2013), I recently deleted b/c Firefox questioned it?

    I managed to get back my Microsoft Office 2013 in this pc by activating required program. After a restart, I was prompted by Firefox screen to resume previous settings or continue with the new one. I accidentally checked the wrong box and got me back to continue using my old program (2003 version).

    Sounds that Firefox had crashed or otherwise wasn't closed correctly the previous time.
    Any choice made there should not have effect on other programs.<br />
    If you didn't restore the windows from the previous session, but started a new session then the tabs from the previous session are most likely lost if you have started Firefox more than once and a new sessionstore.bak file has been created.
    *http://kb.mozillazine.org/Session_Restore
    *http://kb.mozillazine.org/sessionstore.js
    *https://support.mozilla.org/kb/restore-previous-session
    If you didn't succeed to finish the registration of a new program then you could try to repeat that action in the MS Office program.
    Best would be to make sure that Firefox is already running and if possible then copy the link and paste it in the Firefox location bar manually to prevent this issue from happening again.

  • When trying to open an attachment, says I have to buy microsoft office 2013

    I have had no problems before, my laptop came with microsoft starter office 2010. Why wont firefox let me use that when opening an attachment?

    It wont let me download and save. it goes directly to Microsoft Office 2013 trial.
    Internet explorer does the same thing.
    Can I change firefox and internet explorer from opening office 2013 and get back to my original starter edition?

  • Microsoft Office 2013 student vs Microsoft Office 365

    I have a question
    I'm a high school student and will go to college next year. I wanna buy a laptop and Microsoft Office for it. Which one do you prefer for me as a student to buy? Microsoft Office 365 with 1 year subscription or Microsoft Office 2013 student? Thank you

    Im interested on buying Toshiba C55-A5308 Laptop, Internet Security Software, Sleeve, Mouse & Flash Drive, Microsoft office 2013 package. I have some questions1. I added the product into the shopping chart yesterday on saturday night. But it was gone when I checked my account this morning. Is that still available? If not, I'm planning on buying Toshiba C55-A5308 Laptop, Internet Security Software, Sleeve, Mouse & Flash Drive Package and Microsoft Office separately. Is that still available and until when it will be still available?2. How is the warranty system for the product? Is that available in other countries outside the United States? I'll be here for 7 months until june next year as an exchange student and them will go home to my country Indonesia3. I wanna purchase the package with my parent's credit card in my country and the adress is also in my country, is that possible that I use the credit card to pay the package and the package will be shipped to the place where I stay during my exchange program in United States now?.Thank you

Maybe you are looking for

  • Solaris on Intel/apps for solaris compatibility

    Does anyone know how to run apps available for Sun solaris (sparc verion) to run on Intel solaris? I tried to install sybase client s/w on Intel solaris and obviously it bombed. Is there any kind of emulators or anything that would make this work? Th

  • Adobe Acrobat Pro  was sind R-Font's

    Hallo zusammen, möchte ein vorhandenes PDF Dokument bearbeiten, und die Schriftart die angezeigt wird behalten. Wenn ich mit dem Cursor auf die Schrift gehe, wird mir z.B.  R-Font 1 oder R-Font 4 angezeigt, wenn ich nun einen Text eingebe/ändern möch

  • Can't print in Indesign or Illustrator

    Due to a problem with my computer (MacBook Pro) 10.8.5, I had to clean my disk and reinstall CS4.  Since then i cannot print Illustrator or In Design files.  As soon as I click on the print command the program crashes.  I have updated the software. 

  • No longer have back button while in safari.

    i was surfing the net and i must of done something because i no longer have the back and forward button on the top left of the screen. How do i get them back

  • HT204406 Itunes Match - Iphone 5

    I just renewed to Match on itunes and I can't get it to load on any of my iphone 5s that it was loaded on previously what the deal any ideas?