Questions

NTFS bulk permission problem

Tags: Windows
+
0 Votes

NTFS bulk permission problem

ging_rojas8990
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

Member Answers