The Microsoft .NET Framework has security measures in place that would either limit or prevent a .NET assembly from being loaded on an untrusted network path. I think you can work around this by using an assembly config file, or by copying the appropriate .NET assemblies to a local filesystem, prior to attempting to load them.
There is some discussion about this here: http://stackoverflow.com/questions/24468/running-partially-trusted-net-assem blies-from-a-network-share Cheers, Trevor Sullivan From: [email protected] [mailto:[email protected]] On Behalf Of Kehl, Reto Sent: Friday, November 1, 2013 8:21 AM To: [email protected] Subject: [mssms] RE: run caspol in a task sequence Thank you Christopher, I am running the task sequence step with another account and it works now. From: [email protected] <mailto:[email protected]> [mailto:[email protected]] On Behalf Of [email protected] <mailto:[email protected]> Sent: Freitag, 1. November 2013 12:45 To: [email protected] <mailto:[email protected]> Subject: [mssms] RE: run caspol in a task sequence If you have the same issues running psexec -s, it's a permissions issue. What are the share permissions? What are the NTFS permissions? Christopher Catlett Consultant | Detroit 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]> [mailto:[email protected]] On Behalf Of Kehl, Reto Sent: Friday, November 01, 2013 5:39 AM To: [email protected] <mailto:[email protected]> Subject: [mssms] run caspol in a task sequence Dear all, I need to run this command in a task sequence: "C:\Windows\Microsoft.NET\Framework\v2.0.50727\caspol" -machine -addgroup 1 -strong -file "\\server\d$\abacus\BusinessIntegrator\bin\SystemaComPsqlAdoNet4.dll <file:///\\server\d$\abacus\BusinessIntegrator\bin\SystemaComPsqlAdoNet4.dll > " -noname -noversion FullTrust -n "Systema CodeGroup" -description "Systema Codegroup for .NET Applications" This is what I get: ERROR: Runtime error: Could not load file or assembly '\\server\d$\abacus\BusinessIntegrator\bin\SystemaComPsqlAdoNet4.dll' or one of its dependencies. Access is denied. I have added Site Server computer account and 'everyone' full permission to the 'bin' directory. Same error when trying with psexec -s Any hints please? Thanks, Reto -- This e-mail message and any attachments are of a confidential nature. The information is intended for the named addressee exclusively. If you are not the addressee, you may not electronically disseminate, otherwise distribute or copy this e-mail message, and you may also not use it for any purpose. Please notify the sender immediately if you have received this e-mail message by mistake, and delete this e-mail message and its attachments. E-mail transmissions could be lost, intercepted, corrupted or destroyed. They could arrive late or incomplete, or could even contain viruses. Confidentiality and reliability of the information so transmitted cannot be guaranteed. Rothschild Bank therefore does not accept any liability or responsibility for errors or omissions regarding the information transmitted through e-mail. If verification of the information transmitted through e-mail is required, please ask for postal delivery by contacting Rothschild Bank. This e-mail message is provided for information purposes only. It should not be construed as an offer or solicitation to buy or sell any financial instruments or services. It is not to be made available to US persons and is not to be circulated within the USA. -- This e-mail message and any attachments are of a confidential nature. The information is intended for the named addressee exclusively. If you are not the addressee, you may not electronically disseminate, otherwise distribute or copy this e-mail message, and you may also not use it for any purpose. Please notify the sender immediately if you have received this e-mail message by mistake, and delete this e-mail message and its attachments. E-mail transmissions could be lost, intercepted, corrupted or destroyed. They could arrive late or incomplete, or could even contain viruses. Confidentiality and reliability of the information so transmitted cannot be guaranteed. Rothschild Bank therefore does not accept any liability or responsibility for errors or omissions regarding the information transmitted through e-mail. If verification of the information transmitted through e-mail is required, please ask for postal delivery by contacting Rothschild Bank. This e-mail message is provided for information purposes only. It should not be construed as an offer or solicitation to buy or sell any financial instruments or services. It is not to be made available to US persons and is not to be circulated within the USA.
<<image001.jpg>>

