Making PowerShell Useful

Slides:



Advertisements
Similar presentations
Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
Advertisements

Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Automating Common DBA Tasks
Automating SQL Buildouts With Hyper-V and SQL Server 2008 R2 Robert L Davis, Sr. DBA, Microsoft Corp.
James Boother Blog: INTRODUCTION TO POWERSHELL.
James Boother Blog: AUTOMATING ADMIN TASKS WITH POWERSHELL.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Utility Database Chris
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Using Power BI with my DBA Database
Introduction to SQL Server Automation with Powershell by Chris Sommer.
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Thank You! Local PASS Community & Sponsors!. Restoring a SQL Server database from Azure Blob Storage (200-level) Randolph
SQL Database Management
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
Building a Home Grown Auditing Infrastructure for SQL Server
Securing SQL Server Processes with Certificates
SQL Server Security & Intrusion Prevention
Curacao SQL Saturday June 11, 2016
Justin Randall SQLintersection Session: Friday, 10:00am-11:15pm Automating SQL Server Administration Using SQLCMD Justin Randall.
A digital reference guide for database administrators
Outsourcing Database Administration
Get to know SQL Manager SQL Server administration done right 
DBA and IT Professional for ~9 years. Currently I am a Data Architect
Using Microsoft Identity Manger with SharePoint 2016 to fill the User Profile Sync Gap Max Fritz Senior Systems Consultant Now Micro.
Automating AD Administration with Windows PowerShell
A digital reference guide for database administrators
Cloudy with a Chance of Data
© 2007 Asynchrony Solutions, Inc. 1 10/29/07 Introduction to PowerShell Brian Button VP Engineering Asynchrony Solutions, Inc
DevOps Database Administration
BRK3277 Making the best of the cloud: How Exchange Online is different from Exchange on-premises Tony
SharePoint Saturday Omaha April 2016
SQL Server and PowerShell Let’s Get Serious
Making PowerShell Useful
SQL Server and PowerShell Let’s Get Serious
DevOps Database Administration
SQL Server and PowerShell Let’s Get Serious
Re-Indexing - The quest of ultimate automation
What’s new in SQL Server 2016 Availability Groups
dbatools - PowerShell and SQL Server Working Together
TechEd /23/ :44 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
SQL Server and PowerShell Let’s Get Serious
Getting started with Powershell for the DBA
SQL Server Agent The Life Preserver for the Drowning DBA Lance Tidwell.
Limiting SQL Server Exposure
Reliable, Repeatable, Configurable & Automated Validation with
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
Automating the install and upgrade of SQL scripts
PowerShell & PowerBi Reducing DBAs Context Switching
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
Outsourcing Database Administration
Administrating SQL Server with PowerShell dbatools
Test and Verify Instances with DBAchecks
Summit Nashville /3/2019 1:48 AM
Administrating SQL Server with PowerShell dbatools
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator NACS Branson, MO.
5/1/2019 3:34 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or.
Michael Wall Senior DBA, Great Western Malting
Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions
PowerShell + SharePoint Online – An Admins Guide to Administration in the O365 Cloud Marrell Sanders – Sr. SharePoint Administrator SharePoint Saturday.
SQL Starter Intro To Database Administration
Presentation transcript:

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

Thank you to our AWESOME sponsors!

Agenda 1 2 3 4 5 6 Who Why Where What How Finally Just so you know what is happening today a quick agenda Who What Why How Finally

Twitter: sqldbawithbeard Who am I? 1 Email: mrrobsewell@outlook.com Profile: Rob Sewell Twitter: sqldbawithbeard Blog: sqldbawithabeard.com Just to show you how to contact me – You don’t need any more than that

What is PowerShell? 2 According to MSDN Two-Faced Behind the Scenes It’s a Shell It’s a Scripting Language Click Here Behind the Scenes Replacing the GUI Ask what is Powershell and you will get a thousand different answers MSDN says It’s a Shell, everything you can do in CMD you can do in PS and you can use UNIX Aliasis too like ls rm etc but your outputs are .NET objects It’s a language so you can create your own tools Microsoft are using it and will continue to use it – It powers many GUIS and enables you to do things the GUI cannot in Exchange, Active Directory and especially in Azure There is no GUI -= Server Core is getting more popular and In the October 2009 issue of TechNet Magazine, Microsoft says, "It's safe to say that the single most important skill a Windows administrator will need in the coming years is proficiency with Windows PowerShell." Server Core Azure Paas Powering the GUI Remote Management

Why use PowerShell? 3 What I want to be doing What I end up doing 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

WARNING – PowerShell is not the ONLY resource you should use Why use PowerShell? 3 AUTOMATE EVERYTHING I read a post by @SQLBrit The 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? WARNING – PowerShell is not the ONLY resource you should use Automate from wikipedia   Automation is the use of machines, control systems and information technologies to optimize productivity in the production of goods and delivery of services

Why use PowerShell? 3 Disaster Recovery make repetitive tasks easier and less tedious. make complex tasks less complex by wrapping several commands together. automate tasks and reduce the risk of human error. Disaster Recovery

My Functions Why use PowerShell? 3 Find A Database Check Disk Space Search All SQL Error Logs Find A Database make repetitive tasks easier and less tedious. make complex tasks less complex by wrapping several commands together. Show Last Database Backup Show SQL Services make repetitive tasks easier and less tedious. Write Functions that work in your environment to answer your questions SQL Error Log Show Processes On Server Show Databases Create Windows Account Add Users To Role Show A Users Permissions automate tasks and reduce the risk of human error. Show Server Permissions Create SQL Account Show Windows Event Log Check A Users Logins Drop A User Check Disk Space Show Last Backups On Server Show Automatic Start Services

How – Repetitive Tasks 4 Demo

How 4 Use CTRL + J How can I learn the syntax Can I make that easier? That looks Difficult How will I learn that? How can I learn the syntax Can I make that easier? Use CTRL + J

I can write scripts and functions How 4 I can write scripts and functions But I work in a Team Do I have to teach them? Can you make it easier

I can write scripts and functions How 4 I can write scripts and functions ? Demo Can you make it easier

Or maybe for your Disaster Recovery Run Book How – Complex Tasks 4 The Service needs a Database which uses Availability Groups for HADR The System that Creates the data cannot be exposed externally Or maybe for your Disaster Recovery Run Book There is a scheduled window where data refreshes are required Errors introduced by manual refreshes cost money

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

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)

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

Questions 6

Twitter: sqldbawithbeard Contact Me Email: mrrobsewell@outlook.com Profile: Rob Sewell Twitter: sqldbawithbeard Blog: sqldbawithabeard.com Just to show you how to contact me – You don’t need any more than that SQL SATURDAY EXETER 12th March 2016 Open for Registrations and Session Submissions Come and Ask me if you have Questions