Command for solving security exceptions (for your reference)

Source: Internet
Author: User
Tags modifiers

Microsoft Windows [version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C: \ Documents ents and Settings \ Administrator> drive: \ windows \ Microsoft. NET \ framework \ v
2.0.50727 \ caspol.exe-m-Ag 1-URL "file: // computername/sharename/*" fulltru
St-exclusive on-Q
The file name, directory name, or volume label syntax is incorrect.

C: \ Documents ents and Settings \ Administrator>
C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe-m-Ag 1-URL "file: // 192.168.1.90/sitefiles/*" fulltrust-
Exclusive on-Q
Microsoft (R). Net Framework caspol 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.

The operations you are performing will change the security policy.
Are you sure you want to perform this operation? (Yes/No)
Y
Add a Union code group with "-URL" member conditions to the machine level.
Successful

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe-m-Ag 1-URL "file: // 192.168.1.90/sitefiles/sdwsjzxx/uploa
D_files \ * "fulltrust-exclusive on-Q
Microsoft (R). Net Framework caspol 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.

The operations you are performing will change the security policy.
Are you sure you want to perform this operation? (Yes/No)
Y
Add a Union code group with "-URL" member conditions to the machine level.
Successful

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe-m-Ag 1-URL "file: // 192.168.1.90/sitefiles/sdwsjzxx/upload _
Files \ * "fulltrust-exclusive on-Q
Microsoft (R). Net Framework caspol 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.

The operations you are performing will change the security policy.
Are you sure you want to perform this operation? (Yes/No)
Y
Add a Union code group with "-URL" member conditions to the machine level.
Successful

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe-m-Ag 1-URL "file: // 192.168.1.90/sitefiles/*" fulltrust-ex
Clusive on-Q
Microsoft (R). Net Framework caspol 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.

The operations you are performing will change the security policy.
Are you sure you want to perform this operation? (Yes/No)
Y
Add a Union code group with "-URL" member conditions to the machine level.
Successful

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe-m-Ag 1-URL "file: // 192.168.1.90/sitefiles/sdwsjzxx/upload _
Files \ * "fulltrust-exclusive on-Q
Microsoft (R). Net Framework caspol 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.

The operations you are performing will change the security policy.
Are you sure you want to perform this operation? (Yes/No)
Y
Add a Union code group with "-URL" member conditions to the machine level.
Successful

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe-m-Ag 1-URL "file: // 192.168.1.90/sitefiles/sdwsjzxx/upload _
Files \ Siteserver \ * "fulltrust-exclusive on-Q
Microsoft (R). Net Framework caspol 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.

The operations you are performing will change the security policy.
Are you sure you want to perform this operation? (Yes/No)
Y
Add a Union code group with "-URL" member conditions to the machine level.
Successful

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe /?
'C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ caspol.exe /? 'Is not an internal or external command
And is not a running program.
Or batch files.

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe /?
Microsoft (R). Net Framework caspol 2.0.50727.3053
Copyright (c) Microsoft Corporation. All rights reserved.

Requested "help" Screen

Usage: caspol <option> <ARGs>...

Caspol-M [achine]
Apply additional commands to computer-level Modifiers

Caspol-U [SER]
Apply additional commands to user-level Modifiers

Caspol-en [terprise]
Apply additional commands to enterprise level Modifiers

Caspol-Cu
Caspol-customuser <path>
Apply additional commands to user-level Modifiers

Caspol-A [ll]
Set all policy levels to activity levels

Press <enter> continue ....

Caspol-ca
Caspol-customall <path>
Use additional commands as modifiers for user-defined actions on all levels

Caspol-L [ist]
List code groups and permission sets

Caspol-LG
Caspol-listgroups
List code groups

Caspol-lp
Caspol-listpset
List permission sets

Caspol-lf
Caspol-listfulltrust
List fully trusted assemblies

Caspol-LD
Caspol-listdescription
List code group names and descriptions

Press <enter> continue ....

Caspol-CFT
Caspol-checkfulltrust
Check the full trust list

Caspol-AP
Caspol-addpset {<named_xml_file >|< xml_file> <name>}
Add the named permission set to the policy level

Caspol-CP
Caspol-chgpset <xml_file> <pset_name>
Change the named permission set at the activity level

Caspol-RP
Caspol-rempset <pset_name>
Remove the named permission set from the policy level

Caspol-AF
Caspol-addfulltrust <assembly_name>
Add a fully trusted assembly to the policy level

Caspol-RF
Caspol-remfulltrust <assembly_name>
Remove a fully trusted assembly from the policy level
Press <enter> continue ....

Caspol-RG
Caspol-remgroup <label | Name>
Remove the code group at <label | Name>

Caspol-CG
Caspol-chggroup <label | Name >{< mship >|< pset_name >|< flag >}+
Change the code group at <label | Name> to a given member,
Permission set or flag

Caspol-Ag
Caspol-addgroup <parent_label | Name> <mship> <pset_name> <flag>
Will have a given Member, permission set
Add the code group of the flag to <parent_label | Name>

Caspol-RSG
Caspol-resolvegroup <assembly_name>
List the code groups to which this file belongs

Caspol-RSP
Caspol-resolveperm <assembly_name>
List permissions granted to this file

Press <enter> continue ....

Caspol-s [ecurity] {on | off}
Enable or disable security

Caspol-E [xecution] {on | off}
Enable/disable "Run permission" check during code execution startup

Caspol-PP
Caspol-polchgprompt {on | off}
Prompt for enabling/disabling policy change

Caspol-Q [uiet]
Prompt for policy change to disable this command

Caspol-R [Ecover]
Restore the last saved version

Caspol-Rs
Caspol-Reset
Reset the level to its default status

Caspol-rsld
Caspol-resetlockdown
Reset the level to the default lock status
Press <enter> continue ....

Caspol-f [orce]
Enable force save to disable the caspol Function

Caspol-B [uildcache]
Generate a security policy cache file.

Caspol -?
Caspol /?
Caspol-H [ELP]
Show this screen

"<Mship>" can be:
-Allcode: all codes
-Appdir application directory
-Custom <xml_file>: Custom member Conditions
-Hash Assembly hash
-Pub {-Cert <cert_file_name> |-file <signed_file_name> |-hex Issuer
-GAC is installed in the global assembly cache.
-Site <website>
Press <enter> continue ....

-Strong {-file <assemblyfile_name> |-hex <public_key>}
{<Name> |-noname} {<version> |-noversion}
Strong name
-URL <URL> URL
-Zone <zone_name>, where the region can be:
Mycomputer
Intranet
Trusted
Internet
Untrusted

"<Flag>" can be any combination of the following items:
-Exclusive {on | off}
Set the exclusive flag
-Levelfinal {on | off}
Set the rule declaration levelfinal flag
-N [ame] <Name>
Code group name
-D [EIP] <DESC>
Code group description

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ caspol.exe-m-Ag 1-URL "file: // 192.168.1.90/sitefiles/sdwsjzxx/upload _
Files \ Siteserver \ * "fulltrust-exclusive on-Q

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.