/build/static/layout/Breadcrumb_cap_w.png

SCCM Package Program - Command Line

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   [ + ] Show comments

Answers (3)

Posted by: ontari.ontari 12 years ago
Black Belt
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")

Posted by: jagadeish 12 years ago
Red Belt
1

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

Posted by: piyushnasa 12 years ago
Red Belt
1

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

 
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