Raimund Andrée – NTFSSecurity

Introduction

As  a quick follow-up to our last post, “Task Scheduler – The user account is unknown, the password is incorrect, or the user account does not have permission to modify the task” ( Link ), googled for available utilities that list NTFS permissions.

Utilities

Here are some available options:

  1. Microsoft
    • icacls
  2. Raimund Andrée – NTFSSecurity
    ( powershell module )

Raimund Andrée – NTFSSecurity

We settled on “Raimund Andrée – NTFSSecurity“, we will discuss the reasons later.

Repository

URL

  1. GitHub
    • Releases

Image

Tabulated

Version File Size
NTFSSecurity 4.2.3 NTFSSecurity.zip 183 KB

 

Installation

Prepare Downloaded File

Once downloaded please unblock file…

Obviously to unblock, please click the “Unblock” button.

 

Identify Install Folder

In Powershell parlance the files are delivered as modules and need to be placed in one of the folders listed in the PSModulePath environment variable.

Command


set PSModulePath

Output

Image

Tabulated

  1. C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
  2. C:\Program Files\WindowsPowerShell\Modules\
  3. SQL Server
    • C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\
    • C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\
    • C:\Program Files (x86)\Microsoft SQL Server\130\Tools\PowerShell\Modules\
  4. Baseline Configuration Analyzer
    • C:\Program Files\Microsoft Baseline Configuration Analyzer 2\Modules\

 

Vendor’s Installation Guideline – Location

Image

How to install
Link

 

Explanation

  1. Development
    • During development I think it is best to place in the contextual user’s documents\windows\powershell folder
  2. Production
    • In production, depending on your Version of Power
      • <= v4 C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
      • >= V4
        • C:\Program Files\WindowsPowerShell\Modules

Deploy

Script

Sample


set _folderSrc=C:\downloads\raandree\NTFSSecurity\NTFSSecurity

set _folderDestUserSpecific=C:\Users\%username%\Documents\WindowsPowerShell\Modules\NTFSSecurity
set _folderDestPowerShellModule=C:\Program Files\WindowsPowerShell\Modules

set _folderDest=%_folderDestPowerShellModule%\NTFSSecurity

if not exist "%_folderDest%" mkdir "%_folderDest%"

xcopy "%_folderSrc%" "%_folderDest%" /s /D

Output

Validation

Script

Sample


# Import NTFSSecurity
Import-Module NTFSSecurity

#get help on Get-NTFSAccess
get-help Get-NTFSAccess

Output

Dedicated

Dedicates to MSFT’s own Raimund Andrée.

References

  1. Tutorial
    • NTFSSecurity Tutorial 1 – Getting, adding and removing permissions
      Link
    • NTFSSecurity Tutorial 2 – Managing NTFS Inheritance and Using Privileges
      Link
  2. Script Center
    • File System Security PowerShell Module 4.2.3
      Link

2 thoughts on “Raimund Andrée – NTFSSecurity

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s