mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-15 23:07:23 +00:00
Update code-integrity-policy-commands.md
This commit is contained in:
parent
339a934dbe
commit
5e833309c0
@ -13,7 +13,7 @@ ms.custom: template-how-to
|
||||
|
||||
Generates Policy Commands, Token Commands, and Miscellaneous Commands for user mode code and drivers.
|
||||
|
||||
# Policy Commands
|
||||
## Policy Commands
|
||||
|
||||
| Command:|--update-policy /Path/To/Policy/File |
|
||||
| Description: | Add or update a policy on the current system |
|
||||
@ -27,7 +27,7 @@ Generates Policy Commands, Token Commands, and Miscellaneous Commands for user m
|
||||
| Description: | Dump information about all policies on the system, whether they be active or not |
|
||||
| Alias: | -lp |
|
||||
|
||||
# Token Commands
|
||||
## Token Commands
|
||||
|
||||
| Command:|--add-token Path/To/Token/File [--token-id ID] |
|
||||
| Description: | Deploy a token onto the current system, with an optional specific ID. |
|
||||
@ -42,7 +42,7 @@ Generates Policy Commands, Token Commands, and Miscellaneous Commands for user m
|
||||
| Description: | Dump information about all tokens on the system |
|
||||
| Alias: | -lt |
|
||||
|
||||
# Miscellaneous Commands
|
||||
## Miscellaneous Commands
|
||||
|
||||
| Command:|--device-id |
|
||||
| Description: | Dump the Code Integrity Device Id |
|
||||
@ -56,16 +56,16 @@ Generates Policy Commands, Token Commands, and Miscellaneous Commands for user m
|
||||
| Description: | Display help |
|
||||
| Alias: | -h |
|
||||
|
||||
#Examples
|
||||
## Examples
|
||||
|
||||
#Example 1: Update Policy/Deploy
|
||||
1. Update Policy/Deploy
|
||||
Extract policy file to C:\windows\system32
|
||||
```powershell
|
||||
PS C:\Users\<USER> cd \windows\system32
|
||||
PS C:\windows\system32> .\BF61FE40-8929-4FDF-9EC2-F7A767717F0B.cip -up
|
||||
|
||||
C:\Windows\System32>.\CITool.exe -update-policy \windows\system32\BF61FE40-8929-4FDF-9EC2-F7A767717F0B.cip
|
||||
Usage: CiTool.exe COMMAND <Command-Options> [-json]
|
||||
Usage: CiTool.exe COMMAND [Command-Options] [-json]
|
||||
Commands:
|
||||
----------------------------- Policy Commands ---------------------------------
|
||||
--update-policy /Path/To/Policy/File
|
||||
@ -103,18 +103,18 @@ Commands:
|
||||
Format output as json and suppress input
|
||||
```
|
||||
|
||||
#Example 2: Refresh the policy
|
||||
2. Refresh the policy
|
||||
```powershell
|
||||
PS C:\Users\[USER] cd \windows\system32
|
||||
PS C:\Windows\System32>.\CITool.exe --refresh
|
||||
Operation Successful
|
||||
```
|
||||
|
||||
#Example 3: Remove the policy
|
||||
3. Remove the policy
|
||||
```powershell
|
||||
PS C:\Users\[USER] cd \windows\system32
|
||||
PS C:\Windows\System32>.\CITool.exe --remove-policy {BF61FE40-8929-4FDF-9EC2-F7A767717F0B}
|
||||
Usage: CiTool.exe COMMAND <Command-Options> [-json]
|
||||
Usage: CiTool.exe COMMAND [Command-Options] [-json]
|
||||
Commands:
|
||||
----------------------------- Policy Commands ---------------------------------
|
||||
--update-policy /Path/To/Policy/File
|
||||
@ -153,7 +153,7 @@ Commands:
|
||||
Press Enter to Exit
|
||||
```
|
||||
|
||||
#Example 4: Display help
|
||||
4. Display help
|
||||
```powershell
|
||||
PS C:\Users\[USER] cd \windows\system32
|
||||
PS C:\windows\system32> .\CITool.exe -h
|
||||
|
Loading…
x
Reference in New Issue
Block a user