Home All Groups Group Topic Archive Search About

Calling Caspol from batch file

Author
4 Oct 2006 6:11 PM
Robert Scheer
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

AddThis Social Bookmark Button