Question Locked

NTFS bulk permission problem

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Cannot figure out where it is wrong when using this PS.
1) save NTFS bulk permission powershell.ps1 in c:\scripts folder
2) created anotehr file called FolderListfile.txt to call NTFS bulk permission.ps1
The permission can be applied but just always get different errors:

Checking c:\folder1
Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\scripts\BulkSet-NTFSPermissions.PS1:49 char:16
if (Test-Path $Folder)
~~~~~~~
CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

1 reply

This discussion is closed to new replies.