Description: When running the Get-NtfsAccess command against a directory that ends with a space, an error is thrown.
Steps to Reproduce:
Given: A directory that ends in a space.
When: The Get-NtfsAccess command is run against the directory.
Then: The error “Get-NTFSAccess: Unable to find the specified file.” is thrown.
Additional Information:
All native commands seem to be working correctly, such as Get-Acl, Get-ChildItem, and Test-Path.
Environment:
Window Server 2019, PowerShell 7.5.1
Description: When running the Get-NtfsAccess command against a directory that ends with a space, an error is thrown.
Steps to Reproduce:
Given: A directory that ends in a space.
When: The Get-NtfsAccess command is run against the directory.
Then: The error “Get-NTFSAccess: Unable to find the specified file.” is thrown.
Additional Information:
All native commands seem to be working correctly, such as Get-Acl, Get-ChildItem, and Test-Path.
Environment:
Window Server 2019, PowerShell 7.5.1