< Back

Restore-Acl

Sat Jan 18, 2020 5:19 pm

NAME Restore-Acl



SYNOPSIS

This function takes the file generated by Save-Acl and applies all permissions therein to a mirror of the folder

structure that was originally read. For this to work, the folder structure originally read by Save-Acl must

be exactly the same as the one you're pointing to here.





SYNTAX

Restore-Acl [-RestoreToFolderPath] <String> [-PermissionFilePath] <String> [<CommonParameters>]





DESCRIPTION





PARAMETERS

-RestoreToFolderPath <String>

A mandatory string parameter representing the folder path that exactly mirrors the folder structure that was

read with Save-Acl.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PermissionFilePath <String>

A mandatory string parameter representing the text file saved by Save-Acl.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS>Restore-Acl -RestoreToFolderPath \\\\NEWFILESERVER\\FileShare -PermissionFilePath C:\\FileSharePermissions.txt















RELATED LINKS