KeithDib Posted December 22, 2010 Report post Posted December 22, 2010 Hi I have written a vbs script to copy a shortcut the the logged in users desktop, but it isnt running.. The advertisement works fine & the package copies down to the clien fine, but it does not run. If I navigate to the SCM\CACHE folder I find the app ok, and if I run it manualy it works fine, its like SCCM cannot run .vbs? Any help would be great Keith Quote Share this post Link to post Share on other sites More sharing options...
0 wmmayms Posted December 23, 2010 Report post Posted December 23, 2010 Hi I have written a vbs script to copy a shortcut the the logged in users desktop, but it isnt running.. The advertisement works fine & the package copies down to the clien fine, but it does not run. If I navigate to the SCM\CACHE folder I find the app ok, and if I run it manualy it works fine, its like SCCM cannot run .vbs? Any help would be great Keith Well its seems that your commandline in your package is wrong somehow. Look in the execmgr.log when executing the advertisement. A tip though is to run it like this: cscript.exe <scriptname>.vbs Quote Share this post Link to post Share on other sites More sharing options...
0 KeithDib Posted December 23, 2010 Report post Posted December 23, 2010 Tha command line and script are both correct, as I said if I run the app manualy after its downloaded to the machine it works fine Quote Share this post Link to post Share on other sites More sharing options...
0 Peter van der Woude Posted December 24, 2010 Report post Posted December 24, 2010 With what rights are you running the script? As by default SCCM uses the SYSTEM account. Quote Share this post Link to post Share on other sites More sharing options...
0 KeithDib Posted December 24, 2010 Report post Posted December 24, 2010 Hi Is is running under system rights Quote Share this post Link to post Share on other sites More sharing options...
0 Peter van der Woude Posted December 24, 2010 Report post Posted December 24, 2010 Then that's your problem, you can't copy something to a users profile with the SYSTEM account... Quote Share this post Link to post Share on other sites More sharing options...
Hi
I have written a vbs script to copy a shortcut the the logged in users desktop, but it isnt running..
The advertisement works fine & the package copies down to the clien fine, but it does not run.
If I navigate to the SCM\CACHE folder I find the app ok, and if I run it manualy it works fine, its like SCCM cannot run .vbs?
Any help would be great
Keith
Share this post
Link to post
Share on other sites