Getting Started with PowerShell and using it with SharePoint

Slides:



Advertisements
Similar presentations
Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Advertisements

Microsoft Virtual Academy
Building AD-SQL-APP Server on AZURE
Microsoft Azure Deployment Planning Services
Folders, the F Word of Document Management
Microsoft Virtual Academy
5/22/2018 1:39 AM BRK2156 Power BI Report Server: Self-service BI and enterprise reporting on-premises Christopher Finlan Senior Program Manager © Microsoft.
Configure and Manage Your Hybrid Cloud Environment at Scale
6/11/2018 8:14 AM THR2175 Building and deploying existing ASP.NET applications using VSTS and Docker on Windows Marcel de Vries CTO, Xpirit © Microsoft.
Azure Cloud Shell Magic of Modern Command-line Management
TFS Database Import Service for Visual Studio Team Services
TechEd /3/2018 4:18 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft Azure Deployment Planning Services
Configuration Management with Azure Automation DSC
Services Course 9/9/2018 3:37 PM Services Course Windows Live SkyDrive Participant Guide © 2008 Microsoft Corporation. All rights reserved.
MDOP: Advanced Group Policy Management 4.0
DDPS in Action: Session 11 Hydration
Microsoft Azure Deployment Planning Services
SQL Server Integration Services SSIS and PowerShell
Microsoft Ignite /21/2018 8:47 AM
SharePoint Online Management and Control
Microsoft Virtual Academy
11/8/2018 2:35 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or.
Getting Started with PowerShell Basics for SQL Server Admin
11/10/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Project Server 2016 Overview
11/11/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Windows PowerShell Remoting: Definitely NOT Just for Servers
Azure PowerShell Aaron Roney Senior Program Manager Cormac McCarthy
Microsoft Virtual Academy
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Visio Professional 2007 & BI Data
Tech·Ed North America /19/ :44 PM
TechEd /21/2018 5:20 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
PowerShell Unplugged Jeffrey Snover Technical Fellow
Twenty Windows Tools You Never Knew Existed
Disaster Recovery as a Service
Tech·Ed North America /5/2018 6:43 PM
Windows 7 Deployment en Masse
Tech·Ed North America /7/2018 9:06 AM
Microsoft Virtual Academy
12/9/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Yammer for IT Tom Kretzmer Solutions Developer, Westinghouse THR1016
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Create IaaS SQL Server Test Premise Environment in Azure Cloud
Microsoft Virtual Academy
Microsoft Virtual Academy
2/24/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
MDC-B203 Deploying Applications in Microsoft System Center Virtual Machine Manager Using Services John Messec Program Manager Microsoft.
Surviving identity management in a hybrid world
2/27/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Microsoft Virtual Academy
Tech Ed North America /12/2019 6:45 AM Required Slide
One Marketing Template
Explore PnP Partner Pack for IT pros, admins and architects
Andrew Fryer Microsoft UK
Hyper-V server deployment - Using the right tools
TechEd /23/2019 9:23 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech Ed North America /27/ :04 AM Required Slide
5/24/ :22 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Microsoft Virtual Academy
Day 2, Session 2 Connecting System Center to the Public Cloud
Microsoft Virtual Academy
Microsoft Virtual Academy
Making Windows Azure Relevant to IT Professionals
SharePoint Online Improve the Way your Business Works Myles Jeffery
PowerShell for ConfigMgr 2012 SP1
Microsoft Virtual Academy
Microsoft Virtual Academy
Presentation transcript:

Getting Started with PowerShell and using it with SharePoint One Tools that Rules them All Michael Wharton ‘mwharton@whartoncomputer.com’ 336-972-5741 web site: ‘www.WhartonComputer.com’ Blog: ‘www.MyProjectExpert’ Twitter: @MyProjectExpert

THANK YOU EVENT SPONSORS! Platinum We appreciated your support of the Charlotte SharePoint Community! Platinum, Gold, Silver, and Bronze have tables scattered throughout Please visit them and inquire about their products & services Raffle at the end of the day and you must be present to win Gold Silver and Bronze

FREE  Edward Snowden Deep Web Dark Net Downloaded * about Napster The Hacker Wars DSKNECTD The Internets Own Boy We Are Legion: The Story of the Hackivists An Honest Liar

PowerShell Field Notes 5/2/2018 7:15 AM ABOUT ME Michael Wharton 30+ EPM Deployments 15+ EPM Migrations 1000+ Trained Project Manager PMO Automations and Monitoring Fundamentals of Scheduling Microsoft MVP | MCT | MCTS | MCP+44 Technical Reviewer Missing Manual: Project 2010 and Project 2013 Project Management using MS Project 2013 Forecast Scheduling 2013 Writing Book: Monitoring and Controlling the PMO My passion real passion is automating and monitoring Project Server My second passion is maintaining good Field Notes!! Using PowerShell Field Notes Windows SQL Server SharePoint Project Server Consistency with Deployments. Comic Books Hardware Hacking Robots Walking Wharton Computer Consulting since 1997 PowerShell Field Notes MyProjectExpert.com DerbyCon © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Love Hardware

Learning Objective Get Excited About PowerShell! Open Your Eyes to the Power! Get you ready for the Future! Get you Started with Using PS> Get Excited About Using PowerShell ** It’s just too cool Open Your Eyes to Automating SQL Admin ** Automate process and procedures ** Make yourself valuable, repeatable and up-to-date **

Survey Who are You? Currently Using PowerShell? SharePoint Administrators IT Professional (network) SQL admins Software Developers Currently Using PowerShell? Currently using PowerShell Remoting

What can you do with PowerShell? Repeated Tasks Automated Processes Get info from multiple pc/server Manage multiple pc/servers Manage anything based on .NET Required for some tasks (exchange) Repeated Task Managing users with of 10 or 20 clicks thru GUI (adding users to AD ) Clean up of deleted users Building new environments Standard installations Automated Process Generate reports Retrieve and pull data Get Information from PC/Multiple server Checking security updates and patches Pulling data and generating reports Managing Multiple pc/Servers 1) Checking that software is loaded or not loaded SQL Admin with PowerShell Using PowerShell Remoting to pull data from one or more SQL servers Performing SQL Maintenance on one or more SQL Servers If this doesn’t get you interested. Then this may not be the session for you. Unless you just want to learn some PowerShell REMOTE INTO

What PowerShell can do - Details Active Directory Applications Backup and Restore Exchange Logs and Monitoring Networks Office Operating System Security SharePoint Storage SQL Server Azure Linux Just about anything!!! Active Directory – Bulk Add, fix duplicate, save to CSV, computer accounts, domains, monitoring, user accounts Applications Backup and Restore Exchange Logs and Monitoring Networks Office Operating System Security SharePoint Storage

Microsoft PowerShell Gallery SharePoint = 1085+ scripts Backup and Recovery Content Management Deployment and Upgrade Monitoring and Reporting Permission and Security Service Application Management Repeated Task Managing users with of 10 or 20 clicks thru GUI (adding users to AD ) Clean up of deleted users Building new environments Standard installations Automated Process Generate reports Retrieve and pull data Get Information from PC/Multiple server Checking security updates and patches Pulling data and generating reports Managing Multiple pc/Servers 1) Checking that software is loaded or not loaded SQL Admin with PowerShell Using PowerShell Remoting to pull data from one or more SQL servers Performing SQL Maintenance on one or more SQL Servers If this doesn’t get you interested. Then this may not be the session for you. Unless you just want to learn some PowerShell REMOTE INTO

Why PowerShell such a Big Deal? Windows vs Linux (Unix) GUI vs Document GUI Way vs Piping commands PowerShell is acting like Linux No GUI Document Based Piping Operating Systems Windows 7 Windows 8 and 8.1 Windows 10 Ubantu Windows XP Linux Macintosh Android Windows XP, Vista, 98, 95, 3.1 Chrome REMOTE INTO

PowerShell History Monad (2003) PowerShell V1 (2006) PowerShell V5 (2015 - Windows 10) Jeff Snover Have fun working with… make it work for you.. Not against you When I first started using --- then I started going … this sucks, this sucks and now back to enjoying Understand how what is going on Key Engineers - Jeffery Hicks / Don Jones / Jeffrey P Snover Snover Monad Manifesto Scriptable shell Command Line Interface -- Admin want GUI Push back on GUI “Services for UNIX” -- almost work but not pure Core Linix vs Windows is API --Linix is a document oriented --edit a file Windows is API only works with GUI – work CLIs and WMIC -- IIS is one of the only WMIC --- lot’s of code required to produce results Windows Management Interface Command (WMIC) Single script for each time – everything had to be test Very difficult to write command lines Piping – A | B | C Monad Manifesto Monad – PowerShell V1 Windows Server 2008 - Optional PowerShell V2 Windows 2008 R2 Many tools and real function PowerShell V3 Windows 2012 PowerShell V4 Windows 20012 R2 PowerShell V5

Microsoft Future No GUI  Only cmdlets Improve Security with smaller attack surface Pushing to the cloud DSC (Desire State Configuration) Nano Server Containers Enjoy using Project Have fun working with… make it work for you.. Not against you When I first started using --- then I started going … this sucks, this sucks and now back to enjoying Understand how what is going on Key Engineers - Jeffery Hicks / Don Jones / Jeffrey P Snover Snover Monad Manifesto Scriptable shell Command Line Interface -- Admin want GUI Push back on GUI “Services for UNIX” -- almost work but not pure Core Linix vs Windows is API --Linix is a document oriented --edit a file Windows is API only works with GUI – work CLIs and WMIC -- IIS is one of the only WMIC --- lot’s of code required to produce results Windows Management Interface Command (WMIC) Single script for each time – everything had to be test Very difficult to write command lines Piping – A | B | C Monad Manifesto Monad – PowerShell V1 Windows Server 2008 - Optional PowerShell V2 Windows 2008 R2 Many tools and real function PowerShell V3 Windows 2012 PowerShell V4 Windows 20012 R2 PowerShell V5

Starting PowerShell on Desktop Start / All Programs / Accessories / Windows PowerShell Newer versions of PowerShell can be installed. Newer versions of .NET Framework are installed Other ways is putting short-cuts on task bar. Use SEARCH to Find

PowerShell PS> PowerShell Prompt Basic interface – much like does prompt The early version had a few more features than the ISE version mainly the ability to log your session

PowerShell ISE Purchase tools that provide more features from

PowerShell Fundamentals 1/2 Essential Commands - Get-Help To Execute Script Setting Security Policy Functions Variables POWERSHELL.ORG Arrays Constants Creating Objects Writing to Console Capture User Input Passing Command Line Arguments PowerShell.org – documents Windows PowerShell – EN.PDF Essential Commands - Get-Help To Execute Script Setting Security Policy Functions Variables Arrays Constants Creating Objects Writing to Console Capture User Input Passing Command Line Arguments

PowerShell Fundamentals 2/2 Do While Loop Do Until Loop For Loop For Each Loop If Statement Switch Statement POWERSHELL.ORG Reading from a File Writing to a Simple File Writing to a HTML File Writing to a CSV File Miscellaneous Do While Loop Do Until Loop For Loop For Each Loop If Statement Switch Statement Reading from a File Writing to a Simple File Writing to a HTML File Writing to a CSV File Miscellaneous Piping, Continuation, Add-in

Demo – PowerShell Basics

General PS> info

Agenda

Tasks – Starting Web apps

Tasks – Checking Status

Task - Searching

Tasks - Pinging

Task – Login to site

Get-Help

Get-Help | Get-Member

Get-Help parameters

Add more screen shots

PowerShell and SharePoint Awareness Making PS> Aware of SharePoint Add in for SharePoint PowerShell Add ins and Modules Demo Script – using PowerShell Adding In and Library Remoting

SharePoint 2016 Management Shell

SharePoint PS> and STSADM

SharePoint Add-In

SP2016 – Configure Project Server

SP2016 – Configure Project Server 2

PowerShell and SharePoint DEMO Making PS> Aware of SharePoint Add in for SharePoint PowerShell Add ins and Modules Demo Script – using PowerShell Adding In and Library Remoting

Auto-SPINSTALLER https://autospinstaller.com

Summary PS> is Microsoft Direction Automation PowerShell Fundamentals PS SharePoint Server Fundamentals Enjoy using Project Have fun working with… make it work for you.. Not against you When I first started using --- then I started going … this sucks, this sucks and now back to enjoying Understand how what is going on

Reference PowerShell.org Windows PowerShell Cookbook - Lee Holmes Windows PowerShell for Developers – Douglas Finke PowerShell for SharePoint 2013 – Steven Mann Windows Server 2012 R2 Administrator Cookbook – Jordan Krause Secrets of PowerShell Remoting – Don Jones and Dr. Tobias Weltner http://PowerShell.org Use PowerShell Remoting to Manager SQL Server Efficiently Learn Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks SQL Server 2012 with PowerShell V3 CookBook by Donabel Santos Reference Material PowerShell.org Windows PowerShell Cookbook - Lee Holmes Windows PowerShell for Developers – Douglas Finke PowerShell for SharePoint 2013 – Steven Mann Windows Server 2012 R2 Administrator Cookbook – Jordan Krause Secrets of PowerShell Remoting – Don Jones and Dr. Tobias Weltner http://PowerShell.org Use PowerShell Remoting to Manager SQL Server Efficiently Learn Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks SQL Server 2012 with PowerShell V3 CookBook by Donabel Santos Use PowerShell Remoting to Manager SQL Server Efficiently http://sqlmag.com/powershell/use- powershell-remoting-manage-sql-servers-efficiently Lean Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks Understanding and Using PowerShell Support in SQL Server 2008 http://msdn.microsoft.com/en- us/library/dd938892.aspx

PowerShell Games! General Game Rules Informal to promote fun and learning Present a Problem Start timer First person to solve – Note time and give 5 more minutes to group Awards Overall Winner – First to solve Problem using PowerShell Fewest Lines to solve winner Most Lines to solve winner Panel of experts picks best solution Discussion on how user approached Each winner describes approach Reference Material PowerShell.org Windows PowerShell Cookbook - Lee Holmes Windows PowerShell for Developers – Douglas Finke PowerShell for SharePoint 2013 – Steven Mann Windows Server 2012 R2 Administrator Cookbook – Jordan Krause Secrets of PowerShell Remoting – Don Jones and Dr. Tobias Weltner http://PowerShell.org Use PowerShell Remoting to Manager SQL Server Efficiently Learn Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks SQL Server 2012 with PowerShell V3 CookBook by Donabel Santos Use PowerShell Remoting to Manager SQL Server Efficiently http://sqlmag.com/powershell/use- powershell-remoting-manage-sql-servers-efficiently Lean Windows PowerShell 3 in a month of Lunches Second Edition – Don Jones, Jeffery Hicks Understanding and Using PowerShell Support in SQL Server 2008 http://msdn.microsoft.com/en- us/library/dd938892.aspx

Future SharePoint Speaking Sept 23-25, 2016 DerbyCon Hacking and Protecting SharePoint https://www.derbycon.com/events/michael-wharton-project-mvp-hacking-and-protecting-sharepoint/ Nov 2-3, 2016 SharePoint Engage Beginners Guide to Using PowerShell with SharePoint http://www.sqlsaturday.com/445/eventhome.aspx Sept 27/2015 Triad Developer Guild Beginner Guide to PowerShell and SharePoint http://triaddev.org/rsvpmaker/next-meeting-2015-7-16/ Sept 3, 2015 Charlotte PowerShell Users Group Using PowerShell Installing and Configuring SharePoint / Project Server http://www.meetup.com/Charlotte-PowerShell-Users-Group/ Sept 19, 2015` Charlotte Area SharePoint User Group Beginners Guide to PowerShell and SharePoint http://www.casug.org/ Sept 25, 2015 DerbyCon Beginners Guide to PowerShell and Hacking https://www.derbycon.com/derbycon-2015-schedule-and-abstract/ Oct 10, 2015 Raleigh SQL Saturday Beginners Guide to PowerShell and SQL Server http://www.sqlsaturday.com/445/eventhome.aspx Oct 17, 2015 Charlotte SQL Saturday http://www.sqlsaturday.com/452/eventhome.aspx

http://bit.do/SPSCLT16 Don’t Wait! Please Tell Us What You Think For each survey submitted, your name will be entered into the raffle at the end of the day.

CONFERENCE COMMUNICATION All slides will be posted on Lanyrd lanyrd.com/2016/spsclt16 Tweet Us @CASPUG or #SPSCLT16 Problems / Questions / Complaints / Suggestions info@casug.org

Join Us For Sharepint Immediately following today’s event First drink is on us Brink your event ticket for validation Duckworth’s Grill & Taphouse 330 North Tryon Street Charlotte, NC 28202 (7th and Tryon)

Immediately following today’s event First drink is on us Join Us For Sharepint Immediately following today’s event First drink is on us Brink your event ticket for validation Duckworth’s Grill & Taphouse 330 North Tryon Street Charlotte, NC 28202 (7th and Tryon)

PowerShell Field Notes 5/2/2018 7:15 AM Questions and Answers Michael Wharton 30+ EPM Deployments 10+ EPM Migrations 1000+ Trained Project Manager PMO Automations and Monitoring Fundamentals of Scheduling Microsoft MVP | MCT | MCTS | MCP+44 Technical Reviewer Missing Manual: Project 2010 and Project 2013 Project Management using MS Project 2013 Forecast Scheduling 2013 (in process) Writing Book: Monitoring and Controlling the PMO My passion real passion is automating and monitoring Comic Books Hardware Hacking Robots Walking Wharton Computer Consulting since 1997 PowerShell Field Notes MyProjectExpert.com © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Michael Wharton, MVP mwharton@whartoncomputer.com