Skip to content

Restore‑NTFSItemSecurityDescriptor

raandree edited this page Sep 6, 2026 · 1 revision

SYNOPSIS

Restores NTFS security descriptors from JSON backup.

SYNTAX

Restore-NTFSItemSecurityDescriptor [-BackupPath] <String> [-PassThru] 
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Validates a schema-versioned backup and restores only the descriptor sections recorded for each original path. Backup content is parsed as data and never evaluated as PowerShell code.

EXAMPLES

EXAMPLE 1

Restore-NTFSItemSecurityDescriptor -BackupPath C:\Backup\permissions.json -Confirm:$false

Restores all valid records in the selected backup file.

PARAMETERS

-BackupPath

The literal path to a JSON backup created by Backup-NTFSItemSecurityDescriptor.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Returns each restored security descriptor after persistence.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

None

WindowsAccessControl.SecurityDescriptor

NOTES

RELATED LINKS

Home

Commands

DSC resources

Clone this wiki locally