Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING vbscript to uninstall office using SCCM not working

John_101

Member
Messages
11
Reaction score
1
Points
3
Hello,

I'm having trouble figuring out why my vbscript shows as completing successfully on the clients execmgr.log but the task its supposed to do is not being done. I am trying to uninstall office using Microsofts vbscript which I ran successfully by simply clicking on it as well as executing via cmd CSCRIPT and the vbs script on the machine locally. Ive uploaded my command line in SCCM, Clients execmgr, and vbscript I used. "DocumentSilent" is the VBSCRIPT

After some googling, I really don't see where i'm going wrong.

Package property settings:
-This package contains source files (pointed to script location)
-Content in the appropriate DP's

Program settings:
-I'm not suppressing any notifications because I want to see it work (live would be suppressed)
- Run as administrator used
-Program can run whether or not user is logged on
-Runs with UNC name

When I deploy I select the correct collection:
- Purpose set to "required"
- Scheduled to run right away (btw I have to select rerun if succeeded on previous attempts otherwise it sees that it "worked" on previous deployment and wont let you redeploy. Saw this issues for others on different forums so I thought id add this comment)
- Deployment options are set to download content from DP and run locally (which I see it does this correctly on the client)

Please help i'm 3 days into trying to get this to work. BTW I've already tried ProPlus SilentUninstall.xml as well and it kept erroring out with "Script for package:XXXX Program:XXXX failed with exit code 30023 (nothing in google tells me what this error means) again following exact instructions from Microsoft.
 

Attachments

Last edited:
For some reason under the clients software center it says its installing the package with the setup.exe /uninstall ProPlus /config SilentUninstallConfig.xml. Should I leave it to run? How do I cancel it? I don't want to deploy the TS if its stuck
 
Ok guys, I got it working although I'm not sure what of the following 3 did the trick:

  • I added the line marked in red
  • - <Configuration Product="ProPlus">
    <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
    <Setting Id="SETUP_REBOOT" Value="Never" />
    </Configuration>
  • I also reinstalled the client on the target computer.
  • Modified the command line
A policy set in our environment automatically installs our anti-virus, I did not need to do anything there as my original package worked after doing the first 2 things I listed.
I had 1 package using the VBS script(vbs script didn't work) and another using the command:
setup.exe /uninstall ProPlus /config SilentUninstallConfig.xml

Using the method using the .xml file I made some modification to the command line. I removed the path to the .xml file because the .xml file is already in the same directory as the setup.exe. I also added ".exe" after SETUP. I've tried it 2 times and both times it worked perfectly. Now that I know this works, I will deploy my package where its going to uninstall 2010 using this package and then install 2016 right after.
 
I figured it out in case anyone is looking to do this through package. My boss wanted to do it through packages.
 
I am curious to see how you were able to get this to work? I was able to Uninstall Office 2010 another way but it leaves Microsoft Office Tools from our image from Office 2007. TIA.
 
I am curious to see how you were able to get this to work? I was able to Uninstall Office 2010 another way but it leaves Microsoft Office Tools from our image from Office 2007. TIA.

It consist of 2 packages. One is the 2016 install and the second is the uninstall

Since I am checking the boxes or drop downs that tell SCCM to download the content locally, my command line for the 2010 uninstall is

setup.exe /uninstall ProPlus /config SilentUninstallConfig.xml

I set the "After Running" to "Configuration Manager Restarts computer"

In the 2016 Install package command line I have it run a .bat file to run the install. Also under the advanced tab I have the "RUN another program first" checked and then I pointed to the uninstall package and set to always run that package first.

If its requested I can probably create a nice procedure, I know most people do it through Applications but I was required to do it this way and from what I saw through googling there is nearly 0 information to help you get this to work through packages.
 
Back
Top