Background information:
- NTFS code is hosted on Github: https://codeload.github.com/raandree/NTFSSecurity/zip/refs/heads/master
- Find module path with this command: $Env:PSModulePath (please note that: %Windir%\System32\WindowsPowerShell\v1.0\Modules)
- A good location would be "C:\Program Files\WindowsPowerShell\Modules"
cd "C:\Program Files\WindowsPowerShell\Modules"
wget -OutFile ntfssecurity.zip
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
param([string]$zipfile, [string]$outpath)
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath)
}
Unzip "C:\Program Files\WindowsPowerShell\Modules\ntfssecurity.zip" "C:\Program Files\WindowsPowerShell\Modules\ntfssecurity"
Remove-Item "C:\Program Files\WindowsPowerShell\Modules\ntfssecurity.zip"
Categories: