Posted On March 31, 2019

PowerShell Commands to Install the NTFSSecurity Module

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell Commands to Install the NTFSSecurity Module
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"

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Apache HTTPd

# Install Apacheyum install httpd# Configure Apachevim /etc/httpd/conf/httpd.conf##### Change portNameVirtualHost 127.0.0.1:8080Listen 127.0.0.1:8080######### Set DocumentRootDocumentRoot "/var/www/kimconnect"######…

JavaScript Challenge: Counting Words

This is useful to render word clouds, emphasizing more commonly occurring words in a database.…

PowerShell: Purge OneDrive

# purgeOneDrive_v0.0.1.ps1function purgeOneDrive{ write-host "Halting OneDrive and explorer processes..." taskkill.exe /F /IM "OneDrive.exe" taskkill.exe /F…