The 6 P’s Powershell Profile Prepares Perfect Production Purlieu

Slides:



Advertisements
Similar presentations
The Importance of Social Media. Some facts and statistics: Nearly 1 out of every 5 minutes online is spent on social media Facebook reached 1.11 billion.
Advertisements

Social Media Training Public Records, Privacy and Accountability.
Thank you for downloading this template. You are just 3 steps away from designing your own, eye catching Facebook cover photos. 1.All you now need to.
Discover the Top 3 Social Networks—and How They Can Grow Your Ministry September 9, 2015.
Learning Goals, Scales, and Learning Activities Clarity and Purpose.
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Using Power BI with my DBA Database
PASS BA Virtual Chapter June 16 th, Presents: “What's New in SQL Server Reporting Services 2016”
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
Serverless in Office 365 Build services with Azure Functions
Chrissy LeMaire PowerShell MVP
Securing SQL Server Processes with Certificates
Welcome! Microsoft Dynamics gp user Group (Gpug)
They’re there, but are they YOURS?
PASS Community News November 2016
PowerShell is Happening FOR REAL THIS TIME!!!
Turning Your Checklists
How To Run Google Chrome On 64-bit Windows 7 ? CALL FOR GOOGLE TECHNICAL
Welcome! Microsoft Dynamics gp user Group (Gpug)
Business Communication Dr. Aravind Banakar –
Business Communication
[+] Title Should Be 'Introduction to Pester‘ 89ms
USER REGISTERING WHY IS THE USER SIGN UP FUNCTION BLOCKED?
Simplifying XEvents Management with dbatools
Administrating SQL Server with PowerShell dbatools
SharePoint Saturday Omaha April 2016
Learn more: Expand your Cloud Knowledge
Reliable, Repeatable, Configurable & Automated Validation with
Administrating SQL Server with PowerShell dbatools
dbatools! The reason to finally start learning and using Powershell
Making PowerShell Useful
Administrating SSRS without boring web based clicks!
Conferencing with Video and Presenting
Making PowerShell Useful
Use PowerShell & dbatools to Manage your SQL Server Environment
Chrissy LeMaire, MVP & Rob Sewell, MVP
PowerShell for Data Professionals
Author: Joe ‘The CRM Chap’ Griffin Website: crmchap.co.uk
dbatools! The reason to finally start learning and using Powershell
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
SQLSERVER:\ Using the SQL Server Provider with PowerShell
Automating the install and upgrade of SQL scripts
PowerShell & PowerBi Reducing DBAs Context Switching
Commands for SQL Server
PowerShell SQL Server I will be tweeting links as we go
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
The 6 P’s Powershell Profile Prepares Perfect Production Purlieu
2/17/2019 7:32 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Administrating SQL Server with PowerShell dbatools
Test and Verify Instances with DBAchecks
Summit Nashville /3/2019 1:48 AM
Reliable, Repeatable, Configurable & Automated Validation with
Use PowerShell & dbatools to Manage your SQL Server Environment
T-SQL Tips & Tricks to Make Your Life Easier!
Administrating SQL Server with PowerShell dbatools
Slacking for the DBA It’s good to Chat.
dbatools! The reason to finally start learning and using Powershell
Michael Wall Senior DBA, Great Western Malting
Using Dbatools to Automate Database Migrations
What it is and why you should use it
Question Examples Is the interactive Google map useful?
This is the slide shown before the presentation starts
SSDT, Docker, and (Azure) DevOps
Bringing source control to BI world!
Life Hacks: dbatools Edition
Presentation transcript:

The 6 P’s Powershell Profile Prepares Perfect Production Purlieu Rob Sewell @sqldbawithbeard http://sqldbawithAbeard.com #psconfasia Slides and Demos available at https://github.com/SQLDBAWithABeard/Presentations/ Powershell Profile Prepares Perfect Production Purlieu

Speaker Questionnaire Name : Rob Occupation : DBA, Automator, Do-er Interests : PowerShell, Automation And SQL (PaaS geddit?) Website : sqldbawithAbeard.com Twitter : @sqldbawithbeard Interesting Fact : Has a Beard. (Still) Plays Cricket Speaker : SQL Saturdays, SQL Relay, PowerShell Conference EU Community : SQL South West , SQL Saturday Exeter , PowerShell Virtual Chapter, Organiser for PowerShell Conference EU 2017, Officer, Lead for dbareports, contributor to dbatools https://dbareports.io @psdbareports

So What’s A Purlieu? Definition of purlieu an outlying or adjacent district a frequently visited place :  haunt http://www.merriam-webster.com/dictionary/purlieu For the purposes of this Presentation it is the place that you work – IE your PowerShell CMD or ISE window

Proper Preparation Prevents Pretty Poor Performance The army have a ruder version! Your PowerShell profile loads every time you open PowerShell or PowerShell ISE Powershell.exe –noprofile to start without a profile. Do this when you are developing and testing code Use your profile to create the environment that you want to work in It could be the colours as shown or functions or shortcuts – There are a lot of options! Use your profile delivered by GPO to create the environment you want your team to work in There are many tools and add-ins you can use but make them work for you like Brandon has done with ISESteroids here The 6 P’s Images from http://brandonpadgett.com/powershell/isesteroids-theming/

$Home\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1 But there are 6 Profiles Current User, Current Host – console $Home\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 Current User, All Hosts $Home\Documents\Profile.ps1 All Users, Current Host – console $PsHome\Microsoft.PowerShell_profile.ps1 All Users, All Hosts $PsHome\Profile.ps1 Current user, Current Host – ISE $Home\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1 All users, Current Host – ISE $PsHome\Microsoft.PowerShellISE_profile.ps1 $Home\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1 There are 6 Profiles as described above enabling you to control the environment in a various of manners However in general and for this presentation we will only be focusing on two – The Current User Current Host for ISE and for the console Want to know why it is there? Go and look at the code in GitHub or ask the team here  https://github.com/PowerShell/PowerShell/blob/309bf603f9aff9009dce7e725d42b2d4f99f58c9/src/powershell-native/nativemsh/pwrshexe/MainEntry.cpp

MUST BE TIME FOR A DEMO

Obviously the rest of the sessions here at #PSConfAsia You Want to Learn More? Obviously the rest of the sessions here at #PSConfAsia Come to the rest of todays sessions Use google, facebook, twitter, slack, PowerShell User Group (Manchester and London) @sqldbawithbeard

PowerShell VC of PASS PowerShell for SQL Server On YouTube Wed, Nov 16   Need to catch up on the changes to SQL PowerShell in 2016? Recording of July 2016 VC Meeting Presented by: The PowerShell VC Team http://sqlps.io/july2016video   On YouTube sqlps.io/video · 21 Videos already posted · New Videos posted every month · Subscribe to be notified when we post new videos   Wed, Nov 16 Automate Operational Readiness and Validation Testing of SQL Server with PowerShell and Pester Mike Robbins Virtual Chapter of Pass – Fast growing, great presenters, videos on Youtube, interacting with Microsoft via Trello,Slack and Connect to bring improvements to the sqlserver module Join the Conversation  @SQLPowerShell Trello: sqlps.io/vote Slack: sqlps.io/slack PowerShell.SQLPASS.org PowerShell@sqlpass.org

Questions? @sqldbawithbeard Ask A Question http://www.menshairforum.com/talk/Thread-Beard-Facts-and-Beards-Meme-Facial-Hair-Manly-Knowledge @sqldbawithbeard

Thank You @sqldbawithbeard http://sqldbawithabeard.com https://uk.linkedin.com/in/robsewellsqldba mrrobsewell@outlook.com