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

PowerShell: Change IP of Remote Windows

# Change-IP-Remote-Windows.ps1$oldIP="192.168.40.135"$newIP="192.168.40.136"$netmask="255.255.255.0"$gateway="192.168.40.1"$dnsServers=@("10.10.8.1","10.10.18.1")function changeIpRemoteComputer{ Param ( [string]$oldIP, [string]$newIP, [string]$newSubnetMask = "255.255.255.0", [string]$newDefaultGateway, [array]$newDNS = @("8.8.8.8","4.4.2.2") )…

Kubernetes: Cert-Manager Certificate Request YAML Example

# Set variables certPrefix=kimconnect domainName=kimconnect.com domainName2=www.kimconnect.com serviceName=kimconnectblog-wordpress servicePort=8080 # Create a yaml file and create…

Basic CSS: Import a Google Font

<style>.red-text {color: red;}p {font-size: 16px;font-family: monospace;}</style><h2 class="red-text">CatPhotoApp</h2><main><p class="red-text">Click here to view more <a href="#">cat photos</a>.</p><a…