VBScript via Package Cannot execute

Hi,

I need to execute the script "OffScrub10.vbs" (http://blogs.technet.com/b/odsupport/archive/2014/11/03/how-to-uninstall-office-2010-and-move-to-office-2013-click-to-run-or-volume-license.aspx)

I need to execute the following:"Offscrub10.vbs ALL /Q /NoCancel /BYPASS 1"

I have tried with package which program is "Offscrub10.vbs ALL /Q /NoCancel /BYPASS 1", and tried with package with .bat file that calls Offscrub10.vbs with parameters. Both cannot execute (Office 2010 remains untouched).

The deploy report states only "failed" (no more details).

The question is:

How to execute the above script?

Thanks in advance!

August 25th, 2015 1:45pm

There are no ticks to executing a vbs. However I would run it as cscript Offscrub10.vbs ALL /Q /NoCancel /BYPASS 1

Additionally, I would test this command manually, using the PSexec trick.

http://verbalprocessor.com/2007/12/05/running-a-cmd-prompt-as-local-system/

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 2:35pm

Thanks Garth for your response.

The execution failed (failed with exit code 1793).

Here the execmgr.log line: Execution is complete for program PRG_DesinstalarOff2010. The exit code is 1793, the execution status is FailureNonRetry    execmgr    25/08/2015 14:24:14    2816 (0x0B00)


At

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681386%28v=vs.85%29.aspx the 1793 exit code is:

The user's account has expired.

I also have tried the Offscrub10.vbs with Task Sequence, and get the same error code.

What would be the user account that has expired?

Thanks.

August 25th, 2015 3:50pm

The line tried to execute is (from execmgr.exe): Executing program cscript OffScrub10.vbs ALL /Q /NoCancel /BYPASS 1 in Admin context    execmgr    25/08/2015 14:24:13    3324 (0x0CFC)
Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 3:52pm

weird,

I am sure i have ran this before to remove Office 2010 and I think i used a package at the time.

The user account used is the local system account of the machine.

As per Garth's post try using psexec -i -s cmd.exe and open up a prompt at the local system this will allow you to test the installation under the same account / conditions.

http://richardbalsley.com/a-simple-tip-to-test-software-installation-using-the-local-system-account


August 25th, 2015 3:58pm

weird,

I am sure i have ran this before to remove Office 2010 and I think i used a package at the time.

The user account used is the local system account of the machine.

As per Garth's post try using psexec -i -s cmd.exe and open up a prompt at the local system this will allow you to test the installation under the same account / conditions.

http://richardbalsley.com/a-simple-tip-to-test-software-installation-using-the-local-system-account


  • Edited by Richard.Knight Tuesday, August 25, 2015 7:56 PM
  • Proposed as answer by Narcoticoo Wednesday, August 26, 2015 3:02 AM
Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 7:55pm

weird,

I am sure i have ran this before to remove Office 2010 and I think i used a package at the time.

The user account used is the local system account of the machine.

As per Garth's post try using psexec -i -s cmd.exe and open up a prompt at the local system this will allow you to test the installation under the same account / conditions.

http://richardbalsley.com/a-simple-tip-to-test-software-installation-using-the-local-system-account


  • Edited by Richard.Knight Tuesday, August 25, 2015 7:56 PM
  • Proposed as answer by Narcoticoo Wednesday, August 26, 2015 3:02 AM
August 25th, 2015 7:55pm

Hi,

At x86 PCs the script generates error 2, and all of Office 2010 is successfully uninstalled.

At x64 PCs the script still generates error 1793.

Thanks!

Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 4:24pm

Error 2 = The system cannot find the file specified.

Error 1793 = The user's account has expired.

Did you test the command line using the PSexec trick?

August 27th, 2015 4:51pm

Hi,

The PSexec trick run OK -> Office 2010 is uninstalled successfully.

The solution was create an application which deployment type is Script Installer.

At deployment type put the above uninstallation parameters in "Uninstall program" box, put "cmd.exe" at Installation program box (because this box can not be empty) and NOT check the "Run installation and uninstall program as 32-bit process on 64-bit clients"

At detection method use File System, Type: Folder, Path: %programfiles(x86)%, File or folder name: Microsoft Office. Check the "This file or folder is associated with a 32-bit application on 64-bit systems" option. Check the "The file system setting must exist on the target system to indicate presence of this application" option.

Thanks for your help!


Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2015 1:25pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics