A
Adam
Hi,
I am writing a basic pc audit script, which needs to be run from the
netlogon share. The script runs wmi queries, and it fails to run properly
from the network share, but runs fine locally. Below is the error I am
getting. As this script will be run on 300+ different domains, having them
make changes to their group policy or running the capsol tool, isn't really
an option. Does anyone have any suggestions?
Unhandled Exception: System.Security.SecurityException: That assembly does
not allow partially trusted callers.
at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly
asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rhm,
SecurityAction action, Object demand, IPermission permThatFailed)
at QuickTest.Module1.GetCSData()
at QuickTest.Modile1.Main()
The action that failed was:
LinkDemand
The assembly or AppDomain that failed was:
QuickTest, Version=1.0.0.0,Culture=neutral, PublicKeyToken=null
The Zone of the assembly that failed was:
Intranet
The Url of the assembly that failed was:
Thanks in advance.
Adam
I am writing a basic pc audit script, which needs to be run from the
netlogon share. The script runs wmi queries, and it fails to run properly
from the network share, but runs fine locally. Below is the error I am
getting. As this script will be run on 300+ different domains, having them
make changes to their group policy or running the capsol tool, isn't really
an option. Does anyone have any suggestions?
Unhandled Exception: System.Security.SecurityException: That assembly does
not allow partially trusted callers.
at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly
asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rhm,
SecurityAction action, Object demand, IPermission permThatFailed)
at QuickTest.Module1.GetCSData()
at QuickTest.Modile1.Main()
The action that failed was:
LinkDemand
The assembly or AppDomain that failed was:
QuickTest, Version=1.0.0.0,Culture=neutral, PublicKeyToken=null
The Zone of the assembly that failed was:
Intranet
The Url of the assembly that failed was:
Thanks in advance.
Adam