4 Handy PowerShell Commands for Managing the File System · Russell Smith IT consultant, author,...

Post on 24-Jan-2020

2 views 0 download

Transcript of 4 Handy PowerShell Commands for Managing the File System · Russell Smith IT consultant, author,...

Russell Smith

IT consultant, author, and trainer.

4 Handy PowerShell Commands for Managing

the File System

Adam Stetson

Systems EngineerNetwrix Corporation

Managing Permissions with PowerShell

• Basic tasks using Get-Acl and Set-Acl

• FileSystem Provider cmdlets installed by default

• No cmdlet to generate reports

• Can’t modify ACEs

• Can’t create or modify NTFS shares

FileSystem Provider PowerShell cmdlets

• Get-Location

• Set-Location

• Get-Item

• Get-ChildItem

• Invoke-Item

• Move-Item

• New-Item

• Remove-Item

• Get-ItemProperty

• Set-ItemProperty

• Clear-Item

• Clear-ItemProperty

• Remove-Item

• Remove-ItemProperty

• Get-Acl

• Set-Acl

• Get-AuthenticodeSignature

• Set-AuthenticodeSignature

Get-Acl Set-Acl

Get-ChildItem Get-EventLog

Other Useful PowerShell cmdlets

New-Item Remove-Item

Copy-Item Get-Content

Demo

Get Permissions

File Shares

Copy Permissions

Create a Directory

Delete a Directory

List a Directory

Add ACE to ACL

Remove ACE

Permissions Report

Report Excess Permissions

Search Event Log

Demonstration

Netwrix Auditor

Product Demonstration

Product Demonstration

Product Demonstration

Questions?

Prize Drawing

www. .com

Russell Smith

IT consultant, author, and trainer.

Adam Stetson

Systems EngineerNetwrix Corporation

Thank You!