text stringlengths 0 4.23k |
|---|
Specifies that the volume is hidden. |
nodefaultdriveletter |
Specifies that the volume does not receive a drive letter by default. |
shadowcopy |
Specifies that the volume is a shadow copy volume. |
noerr |
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code. |
Remarks |
On basic master boot record (MBR) disks, the hidden, readonly, and nodefaultdriveletter parameters apply to all volumes on the disk. |
On basic GUID partition table (GPT) disks, and on dynamic MBR and gpt disks, the hidden, readonly, and nodefaultdriveletter parameters apply only to the selected volume. |
A volume must be selected for the attributes volume command to succeed. Use the select volume command to select a volume and shift the focus to it. |
Examples |
To display the current attributes on the selected volume, type: |
attributes volume |
To set the selected volume as hidden and read-only, type: |
attributes volume set hidden readonly |
To remove the hidden and read-only attributes on the selected volume, type: |
attributes volume clear hidden readonly |
attributes |
Displays, sets, or clears the attributes of a disk or volume. |
Syntax |
attributes disk |
attributes volume |
Parameters |
Parameter |
Description |
attributes disk |
Displays, sets, or clears the attributes of a disk. |
attributes volume |
Displays, sets, or clears the attributes of a volume. |
auditpol backup |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
The auditpol backup command backs up system audit policy settings, per-user audit policy settings for all users, and all auditing options to a comma-separated value (CSV) text file. |
To perform backup operations on the per-user and system policies, you need Write or Full Control permissions for that object set in the security descriptor. You can also perform backup operations if you have the Manage auditing and security log (SeSecurityPrivilege) user right. However, this right allows access that isn't necessary to perform the overall backup operations. |
Syntax |
auditpol /backup /file:<filename> |
Parameters |
Parameter |
Description |
/file |
Specifies the file name of the for the back up. |
/? |
Displays help at the command prompt. |
Examples |
You can back up the following settings to a CSV-formatted text file: |
To back up these settings to a file named auditpolicy.csv, type the following command: |
auditpol /backup /file:C:\auditpolicy.csv |
Note |
If no drive is specified, the current directory is used. |
auditpol clear |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Deletes the per-user audit policy for all users, resets (disables) the system audit policy for all subcategories, and sets all the auditing options to disabled. |
To perform clear operations on the per-user and system policies, you must have Write or Full Control permission for that object set in the security descriptor. You can also perform clear operations if you have the Manage auditing and security log (SeSecurityPrivilege) user right. However, this right allows additional access that is not necessary to perform the overall clear operations. |
Syntax |
auditpol /clear [/y] |
Parameters |
Parameter |
Description |
/y |
Suppresses the prompt to confirm if all audit policy settings should be cleared. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.