Hi,
Can you please try to list the modules imported by running following command-let,
#Get-Module
and see whether your NTFSSecurity module is loaded or not..!!
I have just downloaded NTFSSecutiry module from internet and imported it successfully,
PS C:\Users\kandati\Downloads\NTFSSecurity 2.1 Binaries> Get-Module
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\Users\kandati\Downloads\NTFSSecurity 2.1 Binaries> Import-Module .\NTFSSecurity
Types added
NTFSSecurity Module loaded
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\Users\kandati\Downloads\NTFSSecurity 2.1 Binaries> Get-Module
ModuleType Name ExportedCommands
---------- ---- ----------------
Binary NTFSSecurity {Show-SimpleEffectiveAccess, Get-Inheritance, Set-Owner, Get-SimpleEffec...
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\Users\kandati\Downloads\NTFSSecurity 2.1 Binaries> add-ace -?
NAME
Add-Access
SYNTAX
Add-Access [-Path] <String[]> [-Account] <IdentityReference2> [-AccessRights] <FileSystemRights2> [-AccessType <AccessControlType>] [-InheritanceFlags <InheritanceFlags>] [-PropagationFlags <PropagationFlags>] [-PassThru]
[-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-WarningAction <ActionPreference>] [-ErrorVariable <String>] [-WarningVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Add-Access [-Path] <String[]> [-Account] <IdentityReference2> [-AccessRights] <FileSystemRights2> [-AccessType <AccessControlType>] [-AppliesTo <ApplyTo>] [-PassThru] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [
-WarningAction <ActionPreference>] [-ErrorVariable <String>] [-WarningVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________
It asked few security checks while importing it. But I haven't tried this adding it to profile.ps1
I can get back to you on doing your way..!!
Warm Regards
Sivaprasad K