/build/static/layout/Breadcrumb_cap_w.png

Pushing VBS file thru SCCM

I am new to the packaging arena.... with that....

I have a Batch file that I am trying to deploying thru SCCM. This batch file creates a directory on the local workstation, copies files from the SCCM server, and then its supposed to run a VBS file. This VB file, in turns creates a XML file based off LDAP info...

The VB file portion of the batch file, never runs when I push this thru SCCM.
Standalone on the workstation, it runs the VB file, and creates the XML file..

so, my question is..
Can anyone tell me what I might be doing wrong ?

Batch file contains:

cd\
md c:\irnmtn
cd irnmtn
copy "\\SCCM SERVER\e$\source Applications\irnmtn vbs\*.*" c:\irnmtn
Cscript.exe c:\irnmtn\ironmtnldap.vbs /t:45 /I

0 Comments   [ + ] Show comments

Answers (3)

Posted by: jmcfadyen 13 years ago
5th Degree Black Belt
0
what are you doing wrong.

1) everything :-)

2) standard users will not have access to E$ on your SCCM server. If they are do thats the first thing you did wrong.
3) If they don't thats the second thing you did wrong. (sort of)

a better approach would be to wrap the files into an proper installer (i.e. MSI / AppV whatever you prefer).
setup a CA / post install script to mod / create the xml

deliver the application via SCCM app delivery.

I would throw away all you have done so far and start again.
Posted by: pjgeutjens 13 years ago
Red Belt
0
copy "\\SCCM SERVER\e$\source Applications\irnmtn vbs\*.*" c:\irnmtn

this part is supposed to be handled by SCCM natively. I would just make an SCCM package, indicating a source location while doing so that contains all the files you want to have copied to the client machine (or to be exact, all the files needed for the install, you can choose wether or not to copy them). Then make a program for this package that executes your vbs. This will be what will be executed on the client machines.

Rgds,
PJ
Posted by: anonymous_9363 13 years ago
Red Belt
0
Can anyone tell me what I might be doing wrong ?The only thing John left off was that you posted in the wrong forum. There is a dedicated SCCM/SMS forum on AppDeploy :-)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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