< Back

Save-Acl

Sat Jan 18, 2020 5:19 pm

NAME Save-Acl



SYNOPSIS

This function uses icacls to recursively retrieves all permissions from all files and folders in a particular

folder path and saves them to a text file.





SYNTAX

Save-Acl [-FolderPath] <String> [-SaveFilePath] <String> [<CommonParameters>]





DESCRIPTION





PARAMETERS

-FolderPath <String>

A Mandatory string parameter representing a valid and accessible folder path. This can be a UNC path

or a local path.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SaveFilePath <String>

A mandatory string parameter representing a path to save the text file full permissions to. This will be

referenced with the Restore-Acl function later.



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

System.Void





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



PS>Save-Acl -FolderPath \\\\FILESERVER\\FileShare -SaveFilePath C:\\FileSharePermissions.txt















RELATED LINKS