/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


Running vbscript with k1000

08/23/2016 2067 views

Hi guys,

I have been trying to run a vbscript for several

hours now to uninstall Microsoft office 2010.

Using the "offscrub.vbs" from Microsoft.

I have added it as a dependency to the k1.

Also use "launch a program " to call the script with

the following parameters... which are standard.......

Directory: $(KBOX_SYS_DIR)
 File: cscript.exe
 Parameters: "$(KACE_DEPENDENCY_DIR)\Offscrub10.vbs ProPlus /bypass 1 /q /s /NoCancel"

But.....cant get it to work.

Any ideas.....maybe I can launch it with a batch file.

But how do I do that?

I am trying to make a script to uninstall MSOffice 2010

and then install MSOffice 2013.

Also I can run the VbScript in windows 7

with a batch file with no problems. Just cant seem to do

it with the k1000.

Thanks guys

3 Comments   [ + ] Show comments

Comments

  • Is the file showing up on the remote system that your are removing office 2010 from? C:\ProgramData\Dell\KACE\downloads if you are pushing this out through a managed install
  • Yes the Script is showing up in that location. That's the folder that all dependency files are downloaded to on the remote system. But it doesn't work..
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • You said it worked fine via a batch file. Have you tried uploading both the vbs and the bat files and calling the bat? Alternatively, you could use the built-in task "Run a batch file" (where you enter the bat commands directly in a text box)

All Answers

0
try this:

Directory:          $(KACE_DEPENDENCY_DIR)

File:                  "c:\windows\system32\wscript.exe"

Parameters:     Offscrub10.vbs ProPlus /bypass 1 /q /s /NoCancel

note: make sure you put the double quotes around the file name

8tuShY.jpeg
Answered 08/23/2016 by: SMal.tmcc
Red Belt

  • I have tried SMal...
    It says the script ran successfully, but office 2010 is still installed on the target machine.
    The script doesn't seem to have any effect,

    Like I said when I run it on the local machine manually, i.e Double click.........works fine.!!
    or by calling it with a batch script, i.e.
    (call cscript C:\Users\installer\Desktop\Fixit\Offscrub10.vbs ProPlus /bypass 1 /q /s /NoCancel)....works fine!! I'm stumped.......
    Any idea?
    • it's not the same as you called. look at the way I am calling it vs what you did. You went to the system directory, executed the script engine from there calling the script in another directory. I am calling the script engine from the working directory that the script sets in.
      • Yes Yes ,Smal..
        I did it exactly as you said. It still didn't work.
        My example above was how I tested it was working when I call the script on my local machine with a batch file.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ