Presentation is loading. Please wait.

Presentation is loading. Please wait.

dbatools! The reason to finally start learning and using Powershell

Similar presentations


Presentation on theme: "dbatools! The reason to finally start learning and using Powershell"— Presentation transcript:

1 dbatools! The reason to finally start learning and using Powershell
Patrick Flynn | Link Group Australia dbatools! The reason to finally start learning and using Powershell

2 Thanks to all our Sponsors

3 Who Am I Patrick Flynn MCM – SQL Server 2008 MCSM – Data Platform
Happy to answers any queries on this or any other SQL Server issues MCM – SQL Server 2008 MCSM – Data Platform Production DBA for 10+ years.

4 What we will cover: Powershell – a quick sales pitch!.
dbatools.io – Why its awsome Installing and Using dbatools

5 PowerShell: https://en.wikipedia.org/wiki/PowerShell
Microsoft first showed off Monad at the Professional Development Conference in Los Angeles in September 2003 Microsoft published the first Monad public beta release on June 17, 2005, Beta 2 on September 11, 2005, Release Candidate 2 of PowerShell version 1 was released on September 26, 2006 with final Release to the web (RTW) on November 14, 2006 and announced at TechEd Barcelona PowerShell v2.0 was completed and released to manufacturing in August 2009 PowerShell 3.0 is integrated with Windows 8 and with Windows Server 2012. PowerShell 4.0 is integrated with Windows 8.1 and with Windows Server 2012 R2. Windows Management Framework (WMF) 5.0 RTM which includes PowerShell 5.0 was re-released to web on February 24, 2016 PowerShell 5.1 was released on August 2, 2016, in the Windows 10 Anniversary Update. Final Version of Windows Powershell On 18 August 2016, Microsoft announced[14] that they had made PowerShell open-source and cross-platform with support for Windows, OS X, CentOS and Ubuntu.[3] Based on Dot Net Core On 10th January 2018 GA release of Powershell Core SQL Server SQLPS introduced with Windows 2008 Available as mini-shell with SSMS Initially 5 Commands In 2016 changed to

6 dbatools Community project, initially started out as Start-SqlMigration but has grown into a DBA’s best friend. dbatools currently sports 79 commands. How many of you have heard of dbatools? How many of you have used it? How many knew it was born in Belgium? :D dbatools is a free PowerShell module with over 300 SQL Server best practice, administration and migration commands included.

7 requirements Minimum Recommended Client Client PowerShell v3
SQL Server Management Studio / SMO 2008 R2 Server SQL Server 2000 No PowerShell for pure SQL commands PowerShell v2 for Windows commands Remote PowerShell enabled for Windows commands Recommended Client PowerShell v5.1

8 installation PowerShell Gallery (PowerShell v5+)
Install-Module dbatools Install-Module dbatools –Scope CurrentUser GitHub – dbatools.io/git Invoke-Expression (Invoke-WebRequest Clone repo found at dbatools.io/git, Import-Module dbatools

9 Demo’s of Backup Script
Maintenance Plans Ola Hallengren Minion Backup #702 | Malaysia 2018

10 Asking Questions via Slack
Go to sqlslack.com to get an automatic invite. Sign in at sqlcommunity.slack.com Join the #powershellhelp channel. Also a dedicated #dbatools Ask questions! ( people are friendly  ) Further information: dbatools.io/slack/

11 Questions? ? ? ? ? ? ? ? @sqllensman ? Patrick Flynn ? ? ? ? ? ? ? ?

12 Thanks to all our Sponsors

13 Social Make sure you tweet on #SQLSat706 or #SQLSatWellington Don’t forget to thank Sponsors, Volunteers and Speakers!

14 More Help Extensive documentation within each command Get-Help Start-DbaMigration –Detailed Extensive documentation on dbatools.io dbatools.io/Start-DbaMigration dbatools.io/Repair-DbaOrphanUser Some commands have videos dbatools.io/youtube

15 Powershell Resources PowerShell for SQL Data Professionals
PASS Powershell Virtual Chapter


Download ppt "dbatools! The reason to finally start learning and using Powershell"

Similar presentations


Ads by Google