Fix smart quotes

Smart quotes in the previous patch caused issue importing the script.
This commit is contained in:
Philip Woolford 2020-01-20 23:58:24 +10:30 committed by GitHub
parent 38af96a7ba
commit 5ca7ba08fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3634,7 +3634,7 @@ function Add-ObjectAcl {
# restrict object changes to ACL only
[System.DirectoryServices.DirectoryEntryConfiguration]$SecOptions = $Object.get_Options()
$SecOptions.SecurityMasks = [System.DirectoryServices.SecurityMasks]Dacl
$SecOptions.SecurityMasks = [System.DirectoryServices.SecurityMasks]'Dacl'
# add ACE
$Object.PsBase.ObjectSecurity.AddAccessRule($ACE)