/bundles/itninjaweb/img/Breadcrumb_cap_w.png

I'm trying to test a package that has a cmd.exe and a vbscript in the command line and it keeps failing, here's wha't on the program command line reads: C:\WINDOWS\system32\cmd.exe /c cscript.exe "checkUserForCR.vbs".

Any ideas why this keep failing?

0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Answer this question or Comment on this question for clarity

Answers

1

I assume you are truing to writer a Program command in SCCM, If thats what you wanna do,

Just Remove that C:\WINDOWS\system32\cmd.exe /c and write like this

cscript.exe "checkUserForCR.vbs" 

that will do the Job (Remove '.' after "***.vbs")

Answered 09/17/2012 by: ontari.ontari
Black Belt

Please log in to comment
1

WScript.exe //B "C:\Program Files\MyFolder\MyFile.vbs"

Answered 09/17/2012 by: jagadeish
Red Belt

Please log in to comment
1

Even if you just point to .vbs directly in SCCM it will work fine. No need to put CScript or WScript.

Answered 09/17/2012 by: piyushnasa
Red Belt

Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share