Hello. I'm using PSADT 4.1.5 and would like to completely remove the permissions to a folder from a specified group. However, the 'None' parameter for permissions doesn't seem to be accepted, even though it's noted in the documentation.
Here's the line of code from my script:
Set-ADTItemPermission -LiteralPath 'C:\Folder\Subfolder' -User 'Authenticated Users' -Permission 'None' -Method 'RemoveAll'
Here is Example 3 from the PSADT reference for the Set-ADTItemPermission function:
Set-ADTItemPermission -LiteralPath 'C:\Temp\Private' -User 'DOMAIN\John' -Permission 'None' -Method 'RemoveAll'
When I run the script, the following error is thrown:
Cannot process argument transformation on parameter 'Permission'. Cannot convert value "None" to type "System.Security.AccessControl.FileSystemRights". Error: "Unable to match the identifier name None to a valid enumerator name. Specify one of the following enumerator names and try again: ListDirectory, ReadData, WriteData, CreateFiles, CreateDirectories, AppendData, ReadExtendedAttributes, WriteExtendedAttributes, Traverse, ExecuteFile, DeleteSubdirectoriesAndFiles, ReadAttributes, WriteAttributes, Write, Delete, ReadPermissions, Read, ReadAndExecute, Modify, ChangePermissions, TakeOwnership, Synchronize, FullControl"
Is the None parameter no longer valid in 4.1.5?