Calling Caspol from batch file
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Hi.
I wrote a single batch file that runs Caspol to configure my users
workstations. The first line removes a group from the security policy,
but if that group does not exists, I receive an error and a list with
the syntax to be used with Caspol. That's the line:
@%WINDIR%\Microsoft.NET\Framework\v1.1.4322\CasPol.exe -q -rg NEWGROUP
How can I turn off the error messages or how can I detect if a group
exists, before remove it?
Thanks,
Robert Scheer
.
Relevant Pages
- Re: Code Group Security policy deployment
... I've been using caspol for testing and development, but want to have a nicer ... solution than run batch files on every system. ... Using the Code Access Security Policy tool you can write ... >> the installer on another system, where settings of existing code groups ... (microsoft.public.dotnet.security) - Property Grid IE hosting
... I am using property grid in my usercontrol and hosting it in IE and ... using the strong name and switched of the security policy using caspol ... But I don't want to completlty switch of security policy..Is there a ... by using caspol command or programmatically can we do this .. ... (microsoft.public.dotnet.framework.windowsforms) - Property Grid IE hosting
... I am using property grid in my usercontrol and hosting it in IE and ... using the strong name and switched of the security policy using caspol ... But I don't want to completlty switch of security policy..Is there a ... by using caspol command or programmatically can we do this .. ... (microsoft.public.dotnet.languages.vb.controls) - propertygrid IE josting
... I am using property grid in my usercontrol and hosting it in IE and ... using the strong name and switched of the security policy using caspol ... But I don't want to completlty switch of security policy..Is there a ... by using caspol command or programmatically can we do this .. ... (microsoft.public.dotnet.languages.vb.controls) - propertygrid IE josting
... I am using property grid in my usercontrol and hosting it in IE and ... using the strong name and switched of the security policy using caspol ... But I don't want to completlty switch of security policy..Is there a ... by using caspol command or programmatically can we do this .. ... (microsoft.public.dotnet.framework.windowsforms.designtime) |
|