Yes.. I can manually drop the .vbs onto a machine that gives the Bad Environment error and from my cmd prompt using psexec, run cscript.exe user_Printers.vbs and it runs fine.. Now I don't get the desired results because the script captures the user profile that runs it and takes the users network printers and drops it into a registry entry, so when I run it , it will pull my userid.. but it does run and shows Windows Script Host Version 5.7 Dwayne From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Friday, October 25, 2013 1:25 PM To: [email protected] Subject: RE: [mssms] RE: user_printers.vbs deployment in CM12 "BAD ENVIRONMENT" If you take one of the machines that is giving you issues, and try to run cscript from a cmd prompt, does it launch? Christopher Catlett Consultant | Detroit MCTS_2013_small Sogeti USA Office 248-876-9738 |Fax 877.406.9647 26957 Northwestern Highway, Suite 130, Southfield, MI 48033-8456 <http://www.us.sogeti.com/> www.us.sogeti.com From: [email protected] [mailto:[email protected]] On Behalf Of Dwayne Sent: Friday, October 25, 2013 2:12 PM To: [email protected] Cc: [email protected] Subject: [mssms] RE: user_printers.vbs deployment in CM12 "BAD ENVIRONMENT" Greetings , I 've got a small issue with the vbs script, I've pkg's it in SCCM and deployed it.. I've got 106 successes but I've over 2 thousand Errors with "Bad Environment".. in the program properties I've got cscript.exe user_printers.vbs. no quotes .. And "Only When a user is logged on".. (the fact it is installing successfully on some and not all leads to think the program is set correctly).. I was hoping someone may have seen these errors before and point me in the right direction to fix it.. Below is a snipt of the execmgr.log Invalid data file user_printers.vbs to execute using file association execmgr 10/24/2013 8:20:07 AM 2580 (0x0A14) Regards, Dwayne Hebert. MCTS, MCP SCCM ADMINISTRATOR Systems Infrastructure Office: 504-310-7102 Mobile: 225-315-9553 IB Color_blue jpg Internet Email Confidentiality Privileged/Confidential information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of the bank shall be understood as neither given nor endorsed by it. Thank You.
<<image001.jpg>>
<<image002.jpg>>

