In a nutshell I'm trying to utilize PowerShell to remove an NTFS group from a directory, its sub-folders and files.
I've been trying utilize the directions given here: Link
Here is what I have been entering into PowerShell.
Get-ChildItem -Path C:\02501 -Recurse | Get-NTFSAccess -Account MVPFILES01\Users -ExcludeInherited | Remove-NTFSAccess
As you can see i'm trying to remove MVPFILES01\Users from NTFS Permission ACL. It wasnt clear whether or not this command will remove them from the ACL or remove all permissions. Either way, the result is what I'm after.
The error I'm getting back is:
. : The term 'Get-NTFSPermissions' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:43
+ Get-ChildItem -Path C:\02501 -Recurse |. Get-NTFSPermissions -Account MVPFILES0 ...
+ CategoryInfo : ObjectNotFound: (Get-NTFSPermissions:Strin
g) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException