Combine lines 22 and 23.
$accessRule = new-object System.Security.AccessControl.FileSystemAccessRule $permission
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a powershell script that prevents users from creating subfolders on a list of folders. Inheritance is disabled on the folders. I am getting the following message when I run the script:
cmdlet New-Object at command pipeline position 1
Supply values for the following parameters:
TypeName:
The script is below. What am I missing to cause this message? Thanks.
Combine lines 22 and 23.
$accessRule = new-object System.Security.AccessControl.FileSystemAccessRule $permission