Presentation is loading. Please wait.

Presentation is loading. Please wait.

Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -

Similar presentations


Presentation on theme: "Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -"— Presentation transcript:

1 Rob Sewell http://sqldbawithabeard.com Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here - http://1drv.ms/1Lx7cxN

2 Rob Sewell http://sqldbawithabeard.com Agenda 123456 WhoWhy FinallyWhatHow Where

3 Rob Sewell http://sqldbawithabeard.com Who am I? Email: mrrobsewell@outlook.com Profile: Rob Sewell Blog: sqldbawithabeard.com 1 Twitter: fade2blackuk

4 Rob Sewell http://sqldbawithabeard.com According to MSDN Two-Faced Replacing the GUI Behind the Scenes What is PowerShell? 2 Click Here It’s a Shell It’s a Scripting Language Powering the GUI Remote Management Server Core Azure Paas

5 Rob Sewell http://sqldbawithabeard.com What I want to be doing What I end up doing Why use PowerShell? 3 Building New Shiny Things Exploring the best way to solve that ………. Concentrating on writing and testing that complex procedure/script Completing documentation* Answering the phone Answering Email Performing mundane repetitive tasks

6 Rob Sewell http://sqldbawithabeard.com Why use PowerShell? 3 AUTOMATE EVERYTHING I read a post by @SQLBrit The Best DBAs Automate everythingThe Best DBAs Automate everything I automate as much as is feasibly possible mostly through PowerShell Backups and restores through Dev/SAT/FAT/UAT/Live environments Daily Backup Checks, Drive Space Checks, Service Running Checks, File Space Checks, Failed Agent Job Checks, SQL Error Log Checks, DBCC Checks and more The Answer?

7 Rob Sewell http://sqldbawithabeard.com make repetitive tasks easier and less tedious. automate tasks and reduce the risk of human error. make complex tasks less complex by wrapping several commands together. Disaster Recovery Why use PowerShell? 3

8 Rob Sewell http://sqldbawithabeard.com make repetitive tasks easier and less tedious. automate tasks and reduce the risk of human error. make complex tasks less complex by wrapping several commands together. Why use PowerShell? 3 make repetitive tasks easier and less tedious. Write Functions that work in your environment to answer your questions My Functions

9 Rob Sewell http://sqldbawithabeard.com Demo How – Repetitive Tasks 4

10 Rob Sewell http://sqldbawithabeard.com That looks Difficult How will I learn that? How 4 Use CTRL + J How can I learn the syntax Can I make that easier?

11 Rob Sewell http://sqldbawithabeard.com I can write scripts and functions How 4 Can you make it easier But I work in a Team Do I have to teach them?

12 Rob Sewell http://sqldbawithabeard.com I can write scripts and functions ? How 4 Can you make it easier Demo

13 Rob Sewell http://sqldbawithabeard.com The Service needs a Database which uses Availability Groups for HADR How – Complex Tasks 4 Errors introduced by manual refreshes cost money The System that Creates the data cannot be exposed externally There is a scheduled window where data refreshes are required

14 Rob Sewell http://sqldbawithabeard.com The Service needs a Database which uses Availability Groups for HADR How – Complex Tasks 4 Errors introduced by manual refreshes cost money The System that Creates the data cannot be exposed externally There is a scheduled window where data refreshes are required Demo

15 Rob Sewell http://sqldbawithabeard.com Where Can I Find Out More? 5 Windows PowerShell Reference on MSDN http://powershell.org/ Hey Scripting Guy Powershell Magazine Script Center Pluralsight Laerte Junior Simple Talk DBA Stack Exchange And Many More!! (I have missed loads)

16 Rob Sewell http://sqldbawithabeard.com Hopefully 6 You have learnt You can use Powershell How to create a function CTRL + J How to pass on Knowledge to your team How to set up more complex scripts Where to go for more help

17 Rob Sewell http://sqldbawithabeard.com Questions 6

18 Rob Sewell http://sqldbawithabeard.com Finally 6 Come to #SQLSatExeter 24/25 April 2015 http://sqlsatexeter.azurewebsites.net/ DISCOUNT CODE : SQLHER015

19 Rob Sewell http://sqldbawithabeard.com Contact Me Email: mrrobsewell@outlook.com Profile: Rob Sewell Blog: sqldbawithabeard.com Twitter: fade2blackuk


Download ppt "Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -"

Similar presentations


Ads by Google