4 handy powershell commands for managing the file system...managing permissions with powershell...

25
4 Handy PowerShell Commands for Managing the File System Russell Smith IT consultant, author, and trainer Russell McDermott Solutions Engineer Netwrix Corporation

Upload: others

Post on 26-May-2020

32 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

4 Handy PowerShell Commands for Managing

the File System

Russell Smith

IT consultant, author, and trainer

Russell McDermott

Solutions EngineerNetwrix Corporation

Page 2: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Type your question

here

Click “Send”

Housekeeping

All attendees are on mute.

Ask your questions!

Questions will be answered during the session or in the Q&A at the end.

You will receive the slides and webinar recording in a follow-up email.

The webinar should take about 60 minutes.

Let’s get started!

Page 3: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

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

Page 4: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

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

Page 5: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Get-Acl Set-Acl

Get-ChildItem Get-EventLog

Page 6: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Other Useful PowerShell cmdlets

New-Item Remove-Item

Copy-Item Get-Content

Page 7: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Demo

Page 8: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Get Permissions

Page 9: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

File Shares

Page 10: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Copy Permissions

Page 11: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Create a Directory

Page 12: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Delete a Directory

Page 13: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

List a Directory

Page 14: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Add ACE to ACL

Page 15: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Remove ACE

Page 16: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Permissions Report

Page 17: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Report Excess Permissions

Page 18: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Search Event Log

Page 19: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Demonstration

Netwrix Auditor

Page 20: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Product Demonstration

Page 21: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Product Demonstration

Page 22: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Product Demonstration

Page 23: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Useful Links

Free trial: Set up Netwrix Auditor in your own test environment netwrix.com/auditor9.7

Virtual appliance: Get Netwrix Auditor up and running in minutes netwrix.com/go/appliance

In-browser demo: Run a demo right in your browser with no need to install anything

netwrix.com/go/browser_demo

Contact Sales to obtain more information: netwrix.com/contactsales

Page 24: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

Questions?

Page 25: 4 Handy PowerShell Commands for Managing the File System...Managing Permissions with PowerShell •Basic tasks using Get-Acl and Set-Acl •FileSystem Provider cmdlets installed by

www. .com

Thank You!

Russell Smith

IT consultant, author, and trainer

Russell McDermott

Solutions EngineerNetwrix Corporation